diff options
Diffstat (limited to 'chrome/browser/extensions/extension_function.h')
| -rw-r--r-- | chrome/browser/extensions/extension_function.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h index d0e1d74..27bd37c 100644 --- a/chrome/browser/extensions/extension_function.h +++ b/chrome/browser/extensions/extension_function.h @@ -35,10 +35,7 @@ class QuotaLimitHeuristic; // Abstract base class for extension functions the ExtensionFunctionDispatcher // knows how to dispatch to. -// -// TODO(aa): This will have to become reference counted when we introduce -// APIs that live beyond a single stack frame. -class ExtensionFunction : public base::RefCounted<ExtensionFunction> { +class ExtensionFunction : public base::RefCountedThreadSafe<ExtensionFunction> { public: ExtensionFunction() : request_id_(-1), name_(""), has_callback_(false) {} @@ -98,7 +95,7 @@ class ExtensionFunction : public base::RefCounted<ExtensionFunction> { virtual void Run() = 0; protected: - friend class base::RefCounted<ExtensionFunction>; + friend class base::RefCountedThreadSafe<ExtensionFunction>; virtual ~ExtensionFunction() {} |
