Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: content/browser/plugin_service_impl.cc

Issue 2400313002: Convert miscellaneous RenderThreadImpl messages to mojom (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/plugin_service_impl.h" 5 #include "content/browser/plugin_service_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 PluginService* PluginService::GetInstance() { 61 PluginService* PluginService::GetInstance() {
62 return PluginServiceImpl::GetInstance(); 62 return PluginServiceImpl::GetInstance();
63 } 63 }
64 64
65 void PluginService::PurgePluginListCache(BrowserContext* browser_context, 65 void PluginService::PurgePluginListCache(BrowserContext* browser_context,
66 bool reload_pages) { 66 bool reload_pages) {
67 for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator(); 67 for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator();
68 !it.IsAtEnd(); it.Advance()) { 68 !it.IsAtEnd(); it.Advance()) {
69 RenderProcessHost* host = it.GetCurrentValue(); 69 RenderProcessHost* host = it.GetCurrentValue();
70 if (!browser_context || host->GetBrowserContext() == browser_context) 70 if (!browser_context || host->GetBrowserContext() == browser_context)
71 host->Send(new ViewMsg_PurgePluginListCache(reload_pages)); 71 host->GetRendererInterface()->PurgePluginListCache(reload_pages);
72 } 72 }
73 } 73 }
74 74
75 // static 75 // static
76 PluginServiceImpl* PluginServiceImpl::GetInstance() { 76 PluginServiceImpl* PluginServiceImpl::GetInstance() {
77 return base::Singleton<PluginServiceImpl>::get(); 77 return base::Singleton<PluginServiceImpl>::get();
78 } 78 }
79 79
80 PluginServiceImpl::PluginServiceImpl() 80 PluginServiceImpl::PluginServiceImpl()
81 : filter_(NULL) { 81 : filter_(NULL) {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 415
416 bool PluginServiceImpl::PpapiDevChannelSupported( 416 bool PluginServiceImpl::PpapiDevChannelSupported(
417 BrowserContext* browser_context, 417 BrowserContext* browser_context,
418 const GURL& document_url) { 418 const GURL& document_url) {
419 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs( 419 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs(
420 browser_context, document_url); 420 browser_context, document_url);
421 } 421 }
422 422
423 } // namespace content 423 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/browser_online_state_observer.cc ('k') | content/browser/theme_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698