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/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const char* kPrefToManageType[CONTENT_SETTINGS_NUM_TYPES] = { | 25 const char* kPrefToManageType[CONTENT_SETTINGS_NUM_TYPES] = { |
26 prefs::kManagedDefaultCookiesSetting, | 26 prefs::kManagedDefaultCookiesSetting, |
27 prefs::kManagedDefaultImagesSetting, | 27 prefs::kManagedDefaultImagesSetting, |
28 prefs::kManagedDefaultJavaScriptSetting, | 28 prefs::kManagedDefaultJavaScriptSetting, |
29 prefs::kManagedDefaultPluginsSetting, | 29 prefs::kManagedDefaultPluginsSetting, |
30 prefs::kManagedDefaultPopupsSetting, | 30 prefs::kManagedDefaultPopupsSetting, |
31 prefs::kManagedDefaultGeolocationSetting, | 31 prefs::kManagedDefaultGeolocationSetting, |
32 prefs::kManagedDefaultNotificationsSetting, | 32 prefs::kManagedDefaultNotificationsSetting, |
33 NULL, // No policy for default value of content type intents | 33 NULL, // No policy for default value of content type intents |
34 NULL, // No policy for default value of content type auto-select-certificate | 34 NULL, // No policy for default value of content type auto-select-certificate |
| 35 NULL, // No policy for default value of fullscreen requests |
35 }; | 36 }; |
36 | 37 |
37 struct PrefsForManagedContentSettingsMapEntry { | 38 struct PrefsForManagedContentSettingsMapEntry { |
38 const char* pref_name; | 39 const char* pref_name; |
39 ContentSettingsType content_type; | 40 ContentSettingsType content_type; |
40 ContentSetting setting; | 41 ContentSetting setting; |
41 }; | 42 }; |
42 | 43 |
43 const PrefsForManagedContentSettingsMapEntry | 44 const PrefsForManagedContentSettingsMapEntry |
44 kPrefsForManagedContentSettingsMap[] = { | 45 kPrefsForManagedContentSettingsMap[] = { |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 NOTREACHED() << "Unexpected notification"; | 482 NOTREACHED() << "Unexpected notification"; |
482 return; | 483 return; |
483 } | 484 } |
484 NotifyObservers(ContentSettingsPattern(), | 485 NotifyObservers(ContentSettingsPattern(), |
485 ContentSettingsPattern(), | 486 ContentSettingsPattern(), |
486 CONTENT_SETTINGS_TYPE_DEFAULT, | 487 CONTENT_SETTINGS_TYPE_DEFAULT, |
487 std::string()); | 488 std::string()); |
488 } | 489 } |
489 | 490 |
490 } // namespace content_settings | 491 } // namespace content_settings |
OLD | NEW |