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_policy_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 const char* kPrefToManageType[CONTENT_SETTINGS_NUM_TYPES] = { | 29 const char* kPrefToManageType[CONTENT_SETTINGS_NUM_TYPES] = { |
30 prefs::kManagedDefaultCookiesSetting, | 30 prefs::kManagedDefaultCookiesSetting, |
31 prefs::kManagedDefaultImagesSetting, | 31 prefs::kManagedDefaultImagesSetting, |
32 prefs::kManagedDefaultJavaScriptSetting, | 32 prefs::kManagedDefaultJavaScriptSetting, |
33 prefs::kManagedDefaultPluginsSetting, | 33 prefs::kManagedDefaultPluginsSetting, |
34 prefs::kManagedDefaultPopupsSetting, | 34 prefs::kManagedDefaultPopupsSetting, |
35 prefs::kManagedDefaultGeolocationSetting, | 35 prefs::kManagedDefaultGeolocationSetting, |
36 prefs::kManagedDefaultNotificationsSetting, | 36 prefs::kManagedDefaultNotificationsSetting, |
37 NULL, // No policy for default value of content type intents | 37 NULL, // No policy for default value of content type intents |
38 NULL, // No policy for default value of content type auto-select-certificate | 38 NULL, // No policy for default value of content type auto-select-certificate |
| 39 NULL, // No policy for default value of fullscreen requests |
39 }; | 40 }; |
40 | 41 |
41 struct PrefsForManagedContentSettingsMapEntry { | 42 struct PrefsForManagedContentSettingsMapEntry { |
42 const char* pref_name; | 43 const char* pref_name; |
43 ContentSettingsType content_type; | 44 ContentSettingsType content_type; |
44 ContentSetting setting; | 45 ContentSetting setting; |
45 }; | 46 }; |
46 | 47 |
47 const PrefsForManagedContentSettingsMapEntry | 48 const PrefsForManagedContentSettingsMapEntry |
48 kPrefsForManagedContentSettingsMap[] = { | 49 kPrefsForManagedContentSettingsMap[] = { |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 ContentSettingsPattern(), | 548 ContentSettingsPattern(), |
548 CONTENT_SETTINGS_TYPE_DEFAULT, | 549 CONTENT_SETTINGS_TYPE_DEFAULT, |
549 std::string()); | 550 std::string()); |
550 } | 551 } |
551 } else { | 552 } else { |
552 NOTREACHED() << "Unexpected notification"; | 553 NOTREACHED() << "Unexpected notification"; |
553 } | 554 } |
554 } | 555 } |
555 | 556 |
556 } // namespace content_settings | 557 } // namespace content_settings |
OLD | NEW |