| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/lazy_instance.h" | 6 #include "base/lazy_instance.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/extensions/plugin_manager.h" | 10 #include "chrome/browser/extensions/plugin_manager.h" |
| 11 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 11 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
| 14 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 14 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
| 15 #include "chrome/common/extensions/extension.h" | |
| 16 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
| 17 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
| 18 #include "content/public/browser/plugin_service.h" | 17 #include "content/public/browser/plugin_service.h" |
| 19 #include "content/public/common/pepper_plugin_info.h" | 18 #include "content/public/common/pepper_plugin_info.h" |
| 19 #include "extensions/common/extension.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 | 21 |
| 22 using content::PluginService; | 22 using content::PluginService; |
| 23 | 23 |
| 24 static const char* kNaClPluginMimeType = "application/x-nacl"; | 24 static const char* kNaClPluginMimeType = "application/x-nacl"; |
| 25 | 25 |
| 26 namespace extensions { | 26 namespace extensions { |
| 27 | 27 |
| 28 PluginManager::PluginManager(Profile* profile) : profile_(profile) { | 28 PluginManager::PluginManager(Profile* profile) : profile_(profile) { |
| 29 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, | 29 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 NaClModuleInfo::List::iterator PluginManager::FindNaClModule(const GURL& url) { | 185 NaClModuleInfo::List::iterator PluginManager::FindNaClModule(const GURL& url) { |
| 186 for (NaClModuleInfo::List::iterator iter = nacl_module_list_.begin(); | 186 for (NaClModuleInfo::List::iterator iter = nacl_module_list_.begin(); |
| 187 iter != nacl_module_list_.end(); ++iter) { | 187 iter != nacl_module_list_.end(); ++iter) { |
| 188 if (iter->url == url) | 188 if (iter->url == url) |
| 189 return iter; | 189 return iter; |
| 190 } | 190 } |
| 191 return nacl_module_list_.end(); | 191 return nacl_module_list_.end(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace extensions | 194 } // namespace extensions |
| OLD | NEW |