| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 NOTREACHED() << "Unexpected notification"; | 485 NOTREACHED() << "Unexpected notification"; |
| 485 return; | 486 return; |
| 486 } | 487 } |
| 487 NotifyObservers(ContentSettingsPattern(), | 488 NotifyObservers(ContentSettingsPattern(), |
| 488 ContentSettingsPattern(), | 489 ContentSettingsPattern(), |
| 489 CONTENT_SETTINGS_TYPE_DEFAULT, | 490 CONTENT_SETTINGS_TYPE_DEFAULT, |
| 490 std::string()); | 491 std::string()); |
| 491 } | 492 } |
| 492 | 493 |
| 493 } // namespace content_settings | 494 } // namespace content_settings |
| OLD | NEW |