| 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/extensions/extension_content_settings_api.h" | 5 #include "chrome/browser/extensions/extension_content_settings_api.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/content_settings/cookie_settings.h" | 12 #include "chrome/browser/content_settings/cookie_settings.h" |
| 13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 14 #include "chrome/browser/extensions/extension_content_settings_api_constants.h" | 14 #include "chrome/browser/extensions/extension_content_settings_api_constants.h" |
| 15 #include "chrome/browser/extensions/extension_content_settings_helpers.h" | 15 #include "chrome/browser/extensions/extension_content_settings_helpers.h" |
| 16 #include "chrome/browser/extensions/extension_content_settings_store.h" | 16 #include "chrome/browser/extensions/extension_content_settings_store.h" |
| 17 #include "chrome/browser/extensions/extension_preference_api_constants.h" | 17 #include "chrome/browser/extensions/extension_preference_api_constants.h" |
| 18 #include "chrome/browser/extensions/extension_preference_helpers.h" | 18 #include "chrome/browser/extensions/extension_preference_helpers.h" |
| 19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 22 #include "chrome/common/extensions/extension_error_utils.h" | 22 #include "chrome/common/extensions/extension_error_utils.h" |
| 23 #include "content/browser/plugin_service.h" | 23 #include "content/public/browser/plugin_service.h" |
| 24 #include "webkit/plugins/npapi/plugin_group.h" | 24 #include "webkit/plugins/npapi/plugin_group.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 using content::PluginService; |
| 27 | 28 |
| 28 namespace helpers = extension_content_settings_helpers; | 29 namespace helpers = extension_content_settings_helpers; |
| 29 namespace keys = extension_content_settings_api_constants; | 30 namespace keys = extension_content_settings_api_constants; |
| 30 namespace pref_helpers = extension_preference_helpers; | 31 namespace pref_helpers = extension_preference_helpers; |
| 31 namespace pref_keys = extension_preference_api_constants; | 32 namespace pref_keys = extension_preference_api_constants; |
| 32 | 33 |
| 33 namespace { | 34 namespace { |
| 34 | 35 |
| 35 const std::vector<webkit::npapi::PluginGroup>* g_testing_plugin_groups_; | 36 const std::vector<webkit::npapi::PluginGroup>* g_testing_plugin_groups_; |
| 36 | 37 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 BrowserThread::PostTask( | 299 BrowserThread::PostTask( |
| 299 BrowserThread::UI, FROM_HERE, base::Bind( | 300 BrowserThread::UI, FROM_HERE, base::Bind( |
| 300 &GetResourceIdentifiersFunction::SendResponse, this, true)); | 301 &GetResourceIdentifiersFunction::SendResponse, this, true)); |
| 301 } | 302 } |
| 302 | 303 |
| 303 // static | 304 // static |
| 304 void GetResourceIdentifiersFunction::SetPluginGroupsForTesting( | 305 void GetResourceIdentifiersFunction::SetPluginGroupsForTesting( |
| 305 const std::vector<webkit::npapi::PluginGroup>* plugin_groups) { | 306 const std::vector<webkit::npapi::PluginGroup>* plugin_groups) { |
| 306 g_testing_plugin_groups_ = plugin_groups; | 307 g_testing_plugin_groups_ = plugin_groups; |
| 307 } | 308 } |
| OLD | NEW |