diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 19:46:18 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 19:46:18 +0000 |
commit | 610c089bd27051ca8d2b983e784b31c533cbfef8 (patch) | |
tree | 5405ca268d1302facfa03b84f75b1ca3240fdb52 /chrome/browser/plugin_service.cc | |
parent | f0f9663246d5bd8a2d03721d7390bdb2db244e18 (diff) | |
download | chromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.zip chromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.tar.gz chromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.tar.bz2 |
Take out the activex control.BUG=20259
Review URL: http://codereview.chromium.org/200031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.cc')
-rw-r--r-- | chrome/browser/plugin_service.cc | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc index ac36b16..1d767bd 100644 --- a/chrome/browser/plugin_service.cc +++ b/chrome/browser/plugin_service.cc @@ -116,8 +116,7 @@ PluginProcessHost* PluginService::FindPluginProcess( } PluginProcessHost* PluginService::FindOrStartPluginProcess( - const FilePath& plugin_path, - const std::string& clsid) { + const FilePath& plugin_path) { DCHECK(MessageLoop::current() == ChromeThread::GetMessageLoop(ChromeThread::IO)); @@ -134,7 +133,7 @@ PluginProcessHost* PluginService::FindOrStartPluginProcess( // This plugin isn't loaded by any plugin process, so create a new process. plugin_host = new PluginProcessHost(); - if (!plugin_host->Init(info, clsid, ui_locale_)) { + if (!plugin_host->Init(info, ui_locale_)) { DCHECK(false); // Init is not expected to fail delete plugin_host; return NULL; @@ -144,36 +143,34 @@ PluginProcessHost* PluginService::FindOrStartPluginProcess( } void PluginService::OpenChannelToPlugin( - ResourceMessageFilter* renderer_msg_filter, const GURL& url, - const std::string& mime_type, const std::string& clsid, - const std::wstring& locale, IPC::Message* reply_msg) { + ResourceMessageFilter* renderer_msg_filter, + const GURL& url, + const std::string& mime_type, + const std::wstring& locale, + IPC::Message* reply_msg) { DCHECK(MessageLoop::current() == ChromeThread::GetMessageLoop(ChromeThread::IO)); // We don't need a policy URL here because that was already checked by a // previous call to GetPluginPath. GURL policy_url; - FilePath plugin_path = GetPluginPath(url, policy_url, mime_type, clsid, NULL); - PluginProcessHost* plugin_host = FindOrStartPluginProcess(plugin_path, clsid); + FilePath plugin_path = GetPluginPath(url, policy_url, mime_type, NULL); + PluginProcessHost* plugin_host = FindOrStartPluginProcess(plugin_path); if (plugin_host) { plugin_host->OpenChannelToPlugin(renderer_msg_filter, mime_type, reply_msg); } else { - PluginProcessHost::ReplyToRenderer(renderer_msg_filter, - IPC::ChannelHandle(), - WebPluginInfo(), - reply_msg); + PluginProcessHost::ReplyToRenderer( + renderer_msg_filter, IPC::ChannelHandle(), WebPluginInfo(), reply_msg); } } FilePath PluginService::GetPluginPath(const GURL& url, const GURL& policy_url, const std::string& mime_type, - const std::string& clsid, std::string* actual_mime_type) { bool allow_wildcard = true; WebPluginInfo info; - if (NPAPI::PluginList::Singleton()->GetPluginInfo(url, mime_type, clsid, - allow_wildcard, &info, - actual_mime_type) && + if (NPAPI::PluginList::Singleton()->GetPluginInfo( + url, mime_type, allow_wildcard, &info, actual_mime_type) && PluginAllowedForURL(info.path, policy_url)) { return info.path; } |