| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 20 matching lines...) Expand all Loading... |
| 31 prefs::kManagedDefaultPluginsSetting, | 31 prefs::kManagedDefaultPluginsSetting, |
| 32 prefs::kManagedDefaultPopupsSetting, | 32 prefs::kManagedDefaultPopupsSetting, |
| 33 prefs::kManagedDefaultGeolocationSetting, | 33 prefs::kManagedDefaultGeolocationSetting, |
| 34 prefs::kManagedDefaultNotificationsSetting, | 34 prefs::kManagedDefaultNotificationsSetting, |
| 35 NULL, // No policy for default value of content type intents | 35 NULL, // No policy for default value of content type intents |
| 36 NULL, // No policy for default value of content type auto-select-certificate | 36 NULL, // No policy for default value of content type auto-select-certificate |
| 37 NULL, // No policy for default value of fullscreen requests | 37 NULL, // No policy for default value of fullscreen requests |
| 38 NULL, // No policy for default value of mouse lock requests | 38 NULL, // No policy for default value of mouse lock requests |
| 39 NULL, // No policy for default value of mixed script blocking | 39 NULL, // No policy for default value of mixed script blocking |
| 40 prefs::kManagedDefaultMediaStreamSetting, | 40 prefs::kManagedDefaultMediaStreamSetting, |
| 41 NULL, // No policy for default value of protocol handlers |
| 41 }; | 42 }; |
| 42 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, | 43 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, |
| 43 managed_content_settings_pref_names_array_size_incorrect); | 44 managed_content_settings_pref_names_array_size_incorrect); |
| 44 | 45 |
| 45 struct PrefsForManagedContentSettingsMapEntry { | 46 struct PrefsForManagedContentSettingsMapEntry { |
| 46 const char* pref_name; | 47 const char* pref_name; |
| 47 ContentSettingsType content_type; | 48 ContentSettingsType content_type; |
| 48 ContentSetting setting; | 49 ContentSetting setting; |
| 49 }; | 50 }; |
| 50 | 51 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 NOTREACHED() << "Unexpected notification"; | 466 NOTREACHED() << "Unexpected notification"; |
| 466 return; | 467 return; |
| 467 } | 468 } |
| 468 NotifyObservers(ContentSettingsPattern(), | 469 NotifyObservers(ContentSettingsPattern(), |
| 469 ContentSettingsPattern(), | 470 ContentSettingsPattern(), |
| 470 CONTENT_SETTINGS_TYPE_DEFAULT, | 471 CONTENT_SETTINGS_TYPE_DEFAULT, |
| 471 std::string()); | 472 std::string()); |
| 472 } | 473 } |
| 473 | 474 |
| 474 } // namespace content_settings | 475 } // namespace content_settings |
| OLD | NEW |