diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:32:01 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:32:01 +0000 |
commit | 89afcea333db036bc6710cd8a6ec90b388eee84a (patch) | |
tree | b0889227bdb1e7768e868911eaa64e45b40745ad /chrome/browser/extensions/extension_function_dispatcher.h | |
parent | b1f498e33399652b128d9801ad7d96bbeee4ba87 (diff) | |
download | chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.zip chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.tar.gz chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.tar.bz2 |
Sixth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/370001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.h')
-rw-r--r-- | chrome/browser/extensions/extension_function_dispatcher.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.h b/chrome/browser/extensions/extension_function_dispatcher.h index b987e0e..16a9fb3 100644 --- a/chrome/browser/extensions/extension_function_dispatcher.h +++ b/chrome/browser/extensions/extension_function_dispatcher.h @@ -37,9 +37,15 @@ class ExtensionFunctionDispatcher { // The peer object allows us to notify ExtensionFunctions when we are // destroyed. + // TODO: this should use WeakPtr struct Peer : public base::RefCounted<Peer> { Peer(ExtensionFunctionDispatcher* dispatcher) : dispatcher_(dispatcher) {} ExtensionFunctionDispatcher* dispatcher_; + + private: + friend class base::RefCounted<Peer>; + + ~Peer() {} }; // Gets a list of all known extension function names. |