summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 19:19:24 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 19:19:24 +0000
commit821261bc506fe4a04a0ae0ce8eb6488cca74e52d (patch)
tree0448a068b0d1dc2c2550a0430b4dba0069620741 /base/base.gypi
parent1c54f8f9dba0c6a483d33442a613c581d6412d94 (diff)
downloadchromium_src-821261bc506fe4a04a0ae0ce8eb6488cca74e52d.zip
chromium_src-821261bc506fe4a04a0ae0ce8eb6488cca74e52d.tar.gz
chromium_src-821261bc506fe4a04a0ae0ce8eb6488cca74e52d.tar.bz2
Add ScopedGeneric.
This is intended to be used in a typedef for declaring various types of scoped resources, like ScopedFD or ScopedGDIObject. It attempts to be like scoped_ptr but without pointer semantics. Currently the scoped objects are either custom one-offs that don't support move semantics and have subtly varying behavior, or they use a pointer like ScopedFD which is a memory stomp waiting to happen (since you must keep the int* alive longer than the scoper so it can be dereferenced and closed). R=ajwong@chromium.org, viettrungluu@chromium.org, ajwong Review URL: https://codereview.chromium.org/189613002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi
index 0861dac..fcc3251 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -502,6 +502,7 @@
'numerics/safe_math_impl.h',
'safe_strerror_posix.cc',
'safe_strerror_posix.h',
+ 'scoped_generic.h',
'scoped_native_library.cc',
'scoped_native_library.h',
'sequence_checker.h',