| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/chrome_plugin_service_filter.h" | 5 #include "chrome/browser/chrome_plugin_service_filter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/plugin_prefs.h" | 9 #include "chrome/browser/plugin_prefs.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
| 12 #include "content/browser/plugin_service.h" | 12 #include "content/browser/plugin_service.h" |
| 13 #include "content/browser/renderer_host/render_process_host.h" | 13 #include "content/browser/renderer_host/render_process_host.h" |
| 14 #include "content/browser/resource_context.h" | 14 #include "content/browser/resource_context.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
| 17 #include "webkit/plugins/npapi/plugin_group.h" | 17 #include "webkit/plugins/npapi/plugin_group.h" |
| 18 #include "webkit/plugins/npapi/plugin_list.h" | 18 #include "webkit/plugins/npapi/plugin_list.h" |
| 19 | 19 |
| 20 using content::BrowserThread; |
| 20 using webkit::npapi::PluginGroup; | 21 using webkit::npapi::PluginGroup; |
| 21 | 22 |
| 22 // static | 23 // static |
| 23 ChromePluginServiceFilter* ChromePluginServiceFilter::GetInstance() { | 24 ChromePluginServiceFilter* ChromePluginServiceFilter::GetInstance() { |
| 24 return Singleton<ChromePluginServiceFilter>::get(); | 25 return Singleton<ChromePluginServiceFilter>::get(); |
| 25 } | 26 } |
| 26 | 27 |
| 27 void ChromePluginServiceFilter::RegisterResourceContext( | 28 void ChromePluginServiceFilter::RegisterResourceContext( |
| 28 PluginPrefs* plugin_prefs, | 29 PluginPrefs* plugin_prefs, |
| 29 const void* context) { | 30 const void* context) { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 PluginService::GetInstance()->PurgePluginListCache( | 160 PluginService::GetInstance()->PurgePluginListCache( |
| 160 profile->GetOffTheRecordProfile(), false); | 161 profile->GetOffTheRecordProfile(), false); |
| 161 } | 162 } |
| 162 break; | 163 break; |
| 163 } | 164 } |
| 164 default: { | 165 default: { |
| 165 NOTREACHED(); | 166 NOTREACHED(); |
| 166 } | 167 } |
| 167 } | 168 } |
| 168 } | 169 } |
| OLD | NEW |