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