diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 22:51:46 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 22:51:46 +0000 |
commit | 020f5bad1085d21d6ad912241ae3669ef1a9375f (patch) | |
tree | b20ad4173a6117abe3c5c6b54a550fda49338d90 /chrome/common/chrome_plugin_lib.h | |
parent | d4f7e76644f684d0e9395fa8225e0d1c607de241 (diff) | |
download | chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.zip chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.tar.gz chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.tar.bz2 |
Add an accessor to get the CPAPI main plugin thread's MessageLoop. Use that
to fix a crash in renderer/chrome_plugin_host.cc.
Review URL: http://codereview.chromium.org/4050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_plugin_lib.h')
-rw-r--r-- | chrome/common/chrome_plugin_lib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/chrome_plugin_lib.h b/chrome/common/chrome_plugin_lib.h index 41c672b..f58b9c8 100644 --- a/chrome/common/chrome_plugin_lib.h +++ b/chrome/common/chrome_plugin_lib.h @@ -12,6 +12,8 @@ #include "base/scoped_ptr.h" #include "chrome/common/chrome_plugin_api.h" +class MessageLoop; + // A ChromePluginLib is a single Chrome Plugin Library. // This class is used in the browser process (IO thread), and the plugin process // (plugin thread). It should not be accessed on other threads, because it @@ -23,6 +25,7 @@ class ChromePluginLib : public base::RefCounted<ChromePluginLib> { static ChromePluginLib* Find(const std::wstring& filename); static void Destroy(const std::wstring& filename); static bool IsPluginThread(); + static MessageLoop* GetPluginThreadLoop(); static ChromePluginLib* FromCPID(CPID id) { return reinterpret_cast<ChromePluginLib*>(id); |