| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // The preferences used to manage ContentSettingsTypes. | 27 // The preferences used to manage ContentSettingsTypes. |
| 28 const char* kPrefToManageType[] = { | 28 const char* kPrefToManageType[] = { |
| 29 prefs::kManagedDefaultCookiesSetting, | 29 prefs::kManagedDefaultCookiesSetting, |
| 30 prefs::kManagedDefaultImagesSetting, | 30 prefs::kManagedDefaultImagesSetting, |
| 31 prefs::kManagedDefaultJavaScriptSetting, | 31 prefs::kManagedDefaultJavaScriptSetting, |
| 32 prefs::kManagedDefaultPluginsSetting, | 32 prefs::kManagedDefaultPluginsSetting, |
| 33 prefs::kManagedDefaultPopupsSetting, | 33 prefs::kManagedDefaultPopupsSetting, |
| 34 prefs::kManagedDefaultGeolocationSetting, | 34 prefs::kManagedDefaultGeolocationSetting, |
| 35 prefs::kManagedDefaultNotificationsSetting, | 35 prefs::kManagedDefaultNotificationsSetting, |
| 36 NULL, // No policy for default value of content type intents | |
| 37 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 |
| 38 NULL, // No policy for default value of fullscreen requests | 37 NULL, // No policy for default value of fullscreen requests |
| 39 NULL, // No policy for default value of mouse lock requests | 38 NULL, // No policy for default value of mouse lock requests |
| 40 NULL, // No policy for default value of mixed script blocking | 39 NULL, // No policy for default value of mixed script blocking |
| 41 prefs::kManagedDefaultMediaStreamSetting, | 40 prefs::kManagedDefaultMediaStreamSetting, |
| 42 NULL, // No policy for default value of media stream mic | 41 NULL, // No policy for default value of media stream mic |
| 43 NULL, // No policy for default value of media stream camera | 42 NULL, // No policy for default value of media stream camera |
| 44 NULL, // No policy for default value of protocol handlers | 43 NULL, // No policy for default value of protocol handlers |
| 45 NULL, // No policy for default value of PPAPI broker | 44 NULL, // No policy for default value of PPAPI broker |
| 46 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 ReadManagedDefaultSettings(); | 473 ReadManagedDefaultSettings(); |
| 475 } | 474 } |
| 476 | 475 |
| 477 NotifyObservers(ContentSettingsPattern(), | 476 NotifyObservers(ContentSettingsPattern(), |
| 478 ContentSettingsPattern(), | 477 ContentSettingsPattern(), |
| 479 CONTENT_SETTINGS_TYPE_DEFAULT, | 478 CONTENT_SETTINGS_TYPE_DEFAULT, |
| 480 std::string()); | 479 std::string()); |
| 481 } | 480 } |
| 482 | 481 |
| 483 } // namespace content_settings | 482 } // namespace content_settings |
| OLD | NEW |