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 "chrome/browser/extensions/extension_content_settings_api.h" | 5 #include "chrome/browser/extensions/api/content_settings/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/api/content_settings/content_settings_api_co
nstants.h" |
15 #include "chrome/browser/extensions/extension_content_settings_helpers.h" | 15 #include "chrome/browser/extensions/api/content_settings/content_settings_helper
s.h" |
16 #include "chrome/browser/extensions/extension_content_settings_store.h" | 16 #include "chrome/browser/extensions/api/content_settings/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/public/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 using content::PluginService; |
28 | 28 |
29 namespace helpers = extension_content_settings_helpers; | 29 namespace helpers = content_settings_helpers; |
30 namespace keys = extension_content_settings_api_constants; | 30 namespace keys = content_settings_api_constants; |
31 namespace pref_helpers = extension_preference_helpers; | 31 namespace pref_helpers = extension_preference_helpers; |
32 namespace pref_keys = extension_preference_api_constants; | 32 namespace pref_keys = extension_preference_api_constants; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 const std::vector<webkit::npapi::PluginGroup>* g_testing_plugin_groups_; | 36 const std::vector<webkit::npapi::PluginGroup>* g_testing_plugin_groups_; |
37 | 37 |
38 } // namespace | 38 } // namespace |
39 | 39 |
40 bool ClearContentSettingsFunction::RunImpl() { | 40 bool ClearContentSettingsFunction::RunImpl() { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 BrowserThread::PostTask( | 299 BrowserThread::PostTask( |
300 BrowserThread::UI, FROM_HERE, base::Bind( | 300 BrowserThread::UI, FROM_HERE, base::Bind( |
301 &GetResourceIdentifiersFunction::SendResponse, this, true)); | 301 &GetResourceIdentifiersFunction::SendResponse, this, true)); |
302 } | 302 } |
303 | 303 |
304 // static | 304 // static |
305 void GetResourceIdentifiersFunction::SetPluginGroupsForTesting( | 305 void GetResourceIdentifiersFunction::SetPluginGroupsForTesting( |
306 const std::vector<webkit::npapi::PluginGroup>* plugin_groups) { | 306 const std::vector<webkit::npapi::PluginGroup>* plugin_groups) { |
307 g_testing_plugin_groups_ = plugin_groups; | 307 g_testing_plugin_groups_ = plugin_groups; |
308 } | 308 } |
OLD | NEW |