Add nonstd::unique_ptr as a workaround until std::unique_ptr is allowed.

This is a copy of breakpad's standalone scoped_ptr, which has been
renamed to nonstd::unique_ptr, and from which more complicated classes
have been removed. The reset() method has also been tweaked to more
closely match c++11, and an implicit conversion to bool has been added.

BUG=https://code.google.com/p/pdfium/issues/detail?id=55
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1091283002
3 files changed