diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 16:04:50 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 16:04:50 +0000 |
commit | 34d18e40e285579af3b5fae02ad21ce3d94745be (patch) | |
tree | f69d053360091d15a6adef6095c54f947a113812 /chrome/browser/extensions/extension_function.h | |
parent | 379418079f6f422db211d61f1b1142e4025b730c (diff) | |
download | chromium_src-34d18e40e285579af3b5fae02ad21ce3d94745be.zip chromium_src-34d18e40e285579af3b5fae02ad21ce3d94745be.tar.gz chromium_src-34d18e40e285579af3b5fae02ad21ce3d94745be.tar.bz2 |
Revert 50296 (Causes DCHECK failures) - Make CookieMonster NonThreadSafe.
Made ExtensionFunction RefCountedThreadSafe so it can be posted to different threads.
Used WaitableEvent in AutomationProvider.
BUG=44083
Review URL: http://codereview.chromium.org/2756003
TBR=willchan@chromium.org
Review URL: http://codereview.chromium.org/2860012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function.h')
-rw-r--r-- | chrome/browser/extensions/extension_function.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h index 27bd37c..d0e1d74 100644 --- a/chrome/browser/extensions/extension_function.h +++ b/chrome/browser/extensions/extension_function.h @@ -35,7 +35,10 @@ class QuotaLimitHeuristic; // Abstract base class for extension functions the ExtensionFunctionDispatcher // knows how to dispatch to. -class ExtensionFunction : public base::RefCountedThreadSafe<ExtensionFunction> { +// +// 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> { public: ExtensionFunction() : request_id_(-1), name_(""), has_callback_(false) {} @@ -95,7 +98,7 @@ class ExtensionFunction : public base::RefCountedThreadSafe<ExtensionFunction> { virtual void Run() = 0; protected: - friend class base::RefCountedThreadSafe<ExtensionFunction>; + friend class base::RefCounted<ExtensionFunction>; virtual ~ExtensionFunction() {} |