diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 20:10:49 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 20:10:49 +0000 |
commit | 49457c32741599d3c79e7f345ba51400748fb807 (patch) | |
tree | ba17debd9c2dc5569952f6d1bd5abab683a4bfd3 /base/base_unittests.scons | |
parent | 2786f3db2489aa1fd2453fa85745e5c5658b1cd1 (diff) | |
download | chromium_src-49457c32741599d3c79e7f345ba51400748fb807.zip chromium_src-49457c32741599d3c79e7f345ba51400748fb807.tar.gz chromium_src-49457c32741599d3c79e7f345ba51400748fb807.tar.bz2 |
com_ptr implementation. This is a fairly simple implementation of a smart class specifically meant for IUnknown derived COM interfaces.
The class gets much of its functionality from the already existing scoped_refptr but adds a few COM specific methods and some that scoped_refptr doesn't already have, yet are often necessary such as Receive(), Detach() and Attach().
I went with caps for the first letter of method names, but for the three I just mentioned, it might be prettier to have them in all lower case to better match with methods from the parent class. Let me know what you think.
Review URL: http://codereview.chromium.org/17473
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_unittests.scons')
-rw-r--r-- | base/base_unittests.scons | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/base_unittests.scons b/base/base_unittests.scons index e76939c..3dd851e 100644 --- a/base/base_unittests.scons +++ b/base/base_unittests.scons @@ -84,6 +84,7 @@ input_files = ChromeFileList([ 'rand_util_unittest.cc', 'gfx/rect_unittest.cc', 'ref_counted_unittest.cc', + 'scoped_comptr_unittest.cc', 'scoped_ptr_unittest.cc', 'sha2_unittest.cc', 'shared_memory_unittest.cc', @@ -152,6 +153,7 @@ if not env.Bit('windows'): 'file_version_info_unittest.cc', 'object_watcher_unittest.cc', 'pe_image_unittest.cc', + 'scoped_comptr_unittest.cc', 'system_monitor_unittest.cc', 'sys_string_conversions_unittest.cc', 'time_unittest_win.cc', |