diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-31 17:28:49 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-31 17:28:49 +0000 |
commit | b6a2f8def0586446aaa61db000bae3467dbc2971 (patch) | |
tree | f5a11eccb071c6bb68fb5f320c4118a3a82497b5 /content/browser/plugin_service_impl.cc | |
parent | 72e7bc1812402284c7504d5d2e741973d30c6d87 (diff) | |
download | chromium_src-b6a2f8def0586446aaa61db000bae3467dbc2971.zip chromium_src-b6a2f8def0586446aaa61db000bae3467dbc2971.tar.gz chromium_src-b6a2f8def0586446aaa61db000bae3467dbc2971.tar.bz2 |
Remove a bunch of easy entries from chrome\browser\DEPS.
-hide PluginProcessHost from chrome by having extensions code just tell PluginService which plugin to kill
-hide RenderProcessHostImpl from a test by using the interface instead
-use TestBrowserThread in the SyncListenNotifications tool instead of BrowserThreadImp
-remove some unnecessary mocks from chrome\browser\DEPS
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9159059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119906 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service_impl.cc')
-rw-r--r-- | content/browser/plugin_service_impl.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc index fad5d5e..397ac1e 100644 --- a/content/browser/plugin_service_impl.cc +++ b/content/browser/plugin_service_impl.cc @@ -613,6 +613,20 @@ content::PluginServiceFilter* PluginServiceImpl::GetFilter() { return filter_; } +void PluginServiceImpl::ForcePluginShutdown(const FilePath& plugin_path) { + if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { + BrowserThread::PostTask( + BrowserThread::IO, FROM_HERE, + base::Bind(&PluginServiceImpl::ForcePluginShutdown, + base::Unretained(this), plugin_path)); + return; + } + + PluginProcessHost* plugin = FindNpapiPluginProcess(plugin_path); + if (plugin) + plugin->ForceShutdown(); +} + void PluginServiceImpl::RefreshPlugins() { plugin_list_->RefreshPlugins(); } |