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/content_settings/content_settings_default_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_default_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "chrome/browser/content_settings/content_settings_rule.h" | 13 #include "chrome/browser/content_settings/content_settings_rule.h" |
14 #include "chrome/browser/content_settings/content_settings_utils.h" | 14 #include "chrome/browser/content_settings/content_settings_utils.h" |
15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 16 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/content_settings.h" | 18 #include "chrome/common/content_settings.h" |
19 #include "chrome/common/content_settings_pattern.h" | 19 #include "chrome/common/content_settings_pattern.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "content/browser/browser_thread.h" | 21 #include "content/browser/browser_thread.h" |
22 #include "content/browser/user_metrics.h" | 22 #include "content/browser/user_metrics.h" |
23 #include "content/common/notification_service.h" | 23 #include "content/public/browser/notification_details.h" |
24 #include "content/public/browser/notification_source.h" | 24 #include "content/public/browser/notification_source.h" |
25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // The default setting for each content type. | 29 // The default setting for each content type. |
30 const ContentSetting kDefaultSettings[] = { | 30 const ContentSetting kDefaultSettings[] = { |
31 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_COOKIES | 31 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_COOKIES |
32 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_IMAGES | 32 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_IMAGES |
33 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_JAVASCRIPT | 33 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_JAVASCRIPT |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 SetContentSetting( | 319 SetContentSetting( |
320 ContentSettingsPattern::Wildcard(), | 320 ContentSettingsPattern::Wildcard(), |
321 ContentSettingsPattern::Wildcard(), | 321 ContentSettingsPattern::Wildcard(), |
322 CONTENT_SETTINGS_TYPE_GEOLOCATION, | 322 CONTENT_SETTINGS_TYPE_GEOLOCATION, |
323 std::string(), | 323 std::string(), |
324 setting); | 324 setting); |
325 } | 325 } |
326 } | 326 } |
327 | 327 |
328 } // namespace content_settings | 328 } // namespace content_settings |
OLD | NEW |