diff options
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. |