| 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/content_settings/host_content_settings_map.h" | 5 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/content_settings/content_settings_pref_provider.h" | 22 #include "chrome/browser/content_settings/content_settings_pref_provider.h" |
| 23 #include "chrome/browser/content_settings/content_settings_provider.h" | 23 #include "chrome/browser/content_settings/content_settings_provider.h" |
| 24 #include "chrome/browser/content_settings/content_settings_rule.h" | 24 #include "chrome/browser/content_settings/content_settings_rule.h" |
| 25 #include "chrome/browser/content_settings/content_settings_utils.h" | 25 #include "chrome/browser/content_settings/content_settings_utils.h" |
| 26 #include "chrome/browser/extensions/api/content_settings/content_settings_servic
e.h" | 26 #include "chrome/browser/extensions/api/content_settings/content_settings_servic
e.h" |
| 27 #include "chrome/browser/extensions/extension_service.h" | 27 #include "chrome/browser/extensions/extension_service.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chrome/common/content_settings_pattern.h" | 29 #include "chrome/common/content_settings_pattern.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 32 #include "components/user_prefs/pref_registry_syncable.h" | 32 #include "components/pref_registry/pref_registry_syncable.h" |
| 33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
| 34 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
| 35 #include "content/public/browser/notification_source.h" | 35 #include "content/public/browser/notification_source.h" |
| 36 #include "content/public/browser/user_metrics.h" | 36 #include "content/public/browser/user_metrics.h" |
| 37 #include "content/public/common/content_switches.h" | 37 #include "content/public/common/content_switches.h" |
| 38 #include "extensions/browser/extension_prefs.h" | 38 #include "extensions/browser/extension_prefs.h" |
| 39 #include "extensions/common/constants.h" | 39 #include "extensions/common/constants.h" |
| 40 #include "net/base/net_errors.h" | 40 #include "net/base/net_errors.h" |
| 41 #include "net/base/static_cookie_policy.h" | 41 #include "net/base/static_cookie_policy.h" |
| 42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 HostContentSettingsMap::GetProviderTypeFromSource( | 631 HostContentSettingsMap::GetProviderTypeFromSource( |
| 632 const std::string& source) { | 632 const std::string& source) { |
| 633 for (size_t i = 0; i < arraysize(kProviderNames); ++i) { | 633 for (size_t i = 0; i < arraysize(kProviderNames); ++i) { |
| 634 if (source == kProviderNames[i]) | 634 if (source == kProviderNames[i]) |
| 635 return static_cast<ProviderType>(i); | 635 return static_cast<ProviderType>(i); |
| 636 } | 636 } |
| 637 | 637 |
| 638 NOTREACHED(); | 638 NOTREACHED(); |
| 639 return DEFAULT_PROVIDER; | 639 return DEFAULT_PROVIDER; |
| 640 } | 640 } |
| OLD | NEW |