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" |
(...skipping 19 matching lines...) Expand all Loading... |
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 |
34 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_PLUGINS | 34 CONTENT_SETTING_ALLOW, // CONTENT_SETTINGS_TYPE_PLUGINS |
35 CONTENT_SETTING_BLOCK, // CONTENT_SETTINGS_TYPE_POPUPS | 35 CONTENT_SETTING_BLOCK, // CONTENT_SETTINGS_TYPE_POPUPS |
36 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_GEOLOCATION | 36 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_GEOLOCATION |
37 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_NOTIFICATIONS | 37 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_NOTIFICATIONS |
38 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_INTENTS | 38 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_INTENTS |
39 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE | 39 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE |
| 40 CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_FULLSCREEN |
40 }; | 41 }; |
41 COMPILE_ASSERT(arraysize(kDefaultSettings) == CONTENT_SETTINGS_NUM_TYPES, | 42 COMPILE_ASSERT(arraysize(kDefaultSettings) == CONTENT_SETTINGS_NUM_TYPES, |
42 default_settings_incorrect_size); | 43 default_settings_incorrect_size); |
43 | 44 |
44 } // namespace | 45 } // namespace |
45 | 46 |
46 namespace content_settings { | 47 namespace content_settings { |
47 | 48 |
48 // static | 49 // static |
49 void DefaultProvider::RegisterUserPrefs(PrefService* prefs) { | 50 void DefaultProvider::RegisterUserPrefs(PrefService* prefs) { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 SetContentSetting( | 310 SetContentSetting( |
310 ContentSettingsPattern::Wildcard(), | 311 ContentSettingsPattern::Wildcard(), |
311 ContentSettingsPattern::Wildcard(), | 312 ContentSettingsPattern::Wildcard(), |
312 CONTENT_SETTINGS_TYPE_GEOLOCATION, | 313 CONTENT_SETTINGS_TYPE_GEOLOCATION, |
313 std::string(), | 314 std::string(), |
314 setting); | 315 setting); |
315 } | 316 } |
316 } | 317 } |
317 | 318 |
318 } // namespace content_settings | 319 } // namespace content_settings |
OLD | NEW |