diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
commit | ab820df141e6ab45fd8a095d2f57f91df44e6c9c (patch) | |
tree | 20ae83601c4a484cd74c908b62bc9d702ef27996 /chrome/common/chrome_plugin_util.h | |
parent | 4d9bdfafcd1393385860bc9fe947e0c07719c0f4 (diff) | |
download | chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.zip chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.gz chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.bz2 |
Chrome changes corresponding to my message_loop_type CL.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_plugin_util.h')
-rw-r--r-- | chrome/common/chrome_plugin_util.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/common/chrome_plugin_util.h b/chrome/common/chrome_plugin_util.h index 847e096..5ca17fc 100644 --- a/chrome/common/chrome_plugin_util.h +++ b/chrome/common/chrome_plugin_util.h @@ -6,6 +6,7 @@ #define CHROME_COMMON_CHROME_PLUGIN_UTIL_H__ #include "base/basictypes.h" +#include "base/non_thread_safe.h" #include "base/ref_counted.h" #include "chrome/common/chrome_plugin_api.h" #include "chrome/common/notification_service.h" @@ -35,7 +36,7 @@ struct ScopableCPRequest : public CPRequest { // This is a base class for plugin-related objects that need to go away when // the plugin unloads. This object also verifies that it is created and // destroyed on the same thread. -class PluginHelper : public NotificationObserver { +class PluginHelper : public NotificationObserver, public NonThreadSafe { public: static void DestroyAllHelpersForPlugin(ChromePluginLib* plugin); @@ -49,11 +50,6 @@ class PluginHelper : public NotificationObserver { protected: scoped_refptr<ChromePluginLib> plugin_; -#ifndef NDEBUG - // We keep track of the message loop of the thread we were created on, so - // we can verify that all other methods are called on the same thread. - MessageLoop* message_loop_; -#endif DISALLOW_EVIL_CONSTRUCTORS(PluginHelper); }; |