diff options
| author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 20:51:01 +0000 |
|---|---|---|
| committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 20:51:01 +0000 |
| commit | 9eaa18ed61a3837e1046045476a3c7f4e8eb6a5f (patch) | |
| tree | 814e98bb2f18d5017b047c241cdf58e47ea0d050 /chrome/browser/extensions/extension_function.h | |
| parent | 564e170373c0bb521d735547dc7f443d19b2fac5 (diff) | |
| download | chromium_src-9eaa18ed61a3837e1046045476a3c7f4e8eb6a5f.zip chromium_src-9eaa18ed61a3837e1046045476a3c7f4e8eb6a5f.tar.gz chromium_src-9eaa18ed61a3837e1046045476a3c7f4e8eb6a5f.tar.bz2 | |
Reland r50296 which removes some uses of CookieMonster on the UI thread.
Removes the addition of NonThreadSafe and DCHECKs to CookieMonster.
BUG=44083
Review URL: http://codereview.chromium.org/2845031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51164 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, 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() {} |
