OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |