OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/policy/configuration_policy_handler_list_factory.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/prefs/pref_value_map.h" | 10 #include "base/prefs/pref_value_map.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" | 12 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" |
13 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" | 13 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "components/content_settings/core/common/pref_names.h" | 16 #include "components/content_settings/core/common/pref_names.h" |
17 #include "components/password_manager/core/common/password_manager_pref_names.h" | 17 #include "components/password_manager/core/common/password_manager_pref_names.h" |
18 #include "components/policy/core/browser/autofill_policy_handler.h" | 18 #include "components/policy/core/browser/autofill_policy_handler.h" |
19 #include "components/policy/core/browser/configuration_policy_handler.h" | 19 #include "components/policy/core/browser/configuration_policy_handler.h" |
20 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 20 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
21 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" | 21 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" |
22 #include "components/policy/core/browser/proxy_policy_handler.h" | 22 #include "components/policy/core/browser/proxy_policy_handler.h" |
23 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 23 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
24 #include "components/policy/core/common/policy_details.h" | 24 #include "components/policy/core/common/policy_details.h" |
25 #include "components/policy/core/common/policy_map.h" | 25 #include "components/policy/core/common/policy_map.h" |
26 #include "components/policy/core/common/policy_pref_names.h" | 26 #include "components/policy/core/common/policy_pref_names.h" |
27 #include "components/policy/core/common/schema.h" | 27 #include "components/policy/core/common/schema.h" |
28 #include "components/search_engines/default_search_policy_handler.h" | 28 #include "components/search_engines/default_search_policy_handler.h" |
| 29 #include "components/ssl_config/ssl_config_prefs.h" |
29 #include "components/translate/core/common/translate_pref_names.h" | 30 #include "components/translate/core/common/translate_pref_names.h" |
30 #include "components/variations/pref_names.h" | 31 #include "components/variations/pref_names.h" |
31 #include "policy/policy_constants.h" | 32 #include "policy/policy_constants.h" |
32 | 33 |
33 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
34 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 35 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
35 #endif | 36 #endif |
36 | 37 |
37 #if !defined(OS_IOS) | 38 #if !defined(OS_IOS) |
38 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" | 39 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 { key::kDefaultNotificationsSetting, | 206 { key::kDefaultNotificationsSetting, |
206 prefs::kManagedDefaultNotificationsSetting, | 207 prefs::kManagedDefaultNotificationsSetting, |
207 base::Value::TYPE_INTEGER }, | 208 base::Value::TYPE_INTEGER }, |
208 { key::kDefaultGeolocationSetting, | 209 { key::kDefaultGeolocationSetting, |
209 prefs::kManagedDefaultGeolocationSetting, | 210 prefs::kManagedDefaultGeolocationSetting, |
210 base::Value::TYPE_INTEGER }, | 211 base::Value::TYPE_INTEGER }, |
211 { key::kSigninAllowed, | 212 { key::kSigninAllowed, |
212 prefs::kSigninAllowed, | 213 prefs::kSigninAllowed, |
213 base::Value::TYPE_BOOLEAN }, | 214 base::Value::TYPE_BOOLEAN }, |
214 { key::kEnableOnlineRevocationChecks, | 215 { key::kEnableOnlineRevocationChecks, |
215 prefs::kCertRevocationCheckingEnabled, | 216 ssl_config::prefs::kCertRevocationCheckingEnabled, |
216 base::Value::TYPE_BOOLEAN }, | 217 base::Value::TYPE_BOOLEAN }, |
217 { key::kRequireOnlineRevocationChecksForLocalAnchors, | 218 { key::kRequireOnlineRevocationChecksForLocalAnchors, |
218 prefs::kCertRevocationCheckingRequiredLocalAnchors, | 219 ssl_config::prefs::kCertRevocationCheckingRequiredLocalAnchors, |
219 base::Value::TYPE_BOOLEAN }, | 220 base::Value::TYPE_BOOLEAN }, |
220 { key::kAuthSchemes, | 221 { key::kAuthSchemes, |
221 prefs::kAuthSchemes, | 222 prefs::kAuthSchemes, |
222 base::Value::TYPE_STRING }, | 223 base::Value::TYPE_STRING }, |
223 { key::kDisableAuthNegotiateCnameLookup, | 224 { key::kDisableAuthNegotiateCnameLookup, |
224 prefs::kDisableAuthNegotiateCnameLookup, | 225 prefs::kDisableAuthNegotiateCnameLookup, |
225 base::Value::TYPE_BOOLEAN }, | 226 base::Value::TYPE_BOOLEAN }, |
226 { key::kEnableAuthNegotiatePort, | 227 { key::kEnableAuthNegotiatePort, |
227 prefs::kEnableAuthNegotiatePort, | 228 prefs::kEnableAuthNegotiatePort, |
228 base::Value::TYPE_BOOLEAN }, | 229 base::Value::TYPE_BOOLEAN }, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 { key::kVariationsRestrictParameter, | 357 { key::kVariationsRestrictParameter, |
357 variations::prefs::kVariationsRestrictParameter, | 358 variations::prefs::kVariationsRestrictParameter, |
358 base::Value::TYPE_STRING }, | 359 base::Value::TYPE_STRING }, |
359 { key::kSupervisedUserCreationEnabled, | 360 { key::kSupervisedUserCreationEnabled, |
360 prefs::kSupervisedUserCreationAllowed, | 361 prefs::kSupervisedUserCreationAllowed, |
361 base::Value::TYPE_BOOLEAN }, | 362 base::Value::TYPE_BOOLEAN }, |
362 { key::kForceEphemeralProfiles, | 363 { key::kForceEphemeralProfiles, |
363 prefs::kForceEphemeralProfiles, | 364 prefs::kForceEphemeralProfiles, |
364 base::Value::TYPE_BOOLEAN }, | 365 base::Value::TYPE_BOOLEAN }, |
365 { key::kSSLVersionFallbackMin, | 366 { key::kSSLVersionFallbackMin, |
366 prefs::kSSLVersionFallbackMin, | 367 ssl_config::prefs::kSSLVersionFallbackMin, |
367 base::Value::TYPE_STRING }, | 368 base::Value::TYPE_STRING }, |
368 | 369 |
369 #if !defined(OS_MACOSX) && !defined(OS_IOS) | 370 #if !defined(OS_MACOSX) && !defined(OS_IOS) |
370 { key::kFullscreenAllowed, | 371 { key::kFullscreenAllowed, |
371 prefs::kFullscreenAllowed, | 372 prefs::kFullscreenAllowed, |
372 base::Value::TYPE_BOOLEAN }, | 373 base::Value::TYPE_BOOLEAN }, |
373 #if defined(ENABLE_EXTENSIONS) | 374 #if defined(ENABLE_EXTENSIONS) |
374 { key::kFullscreenAllowed, | 375 { key::kFullscreenAllowed, |
375 extensions::pref_names::kAppFullscreenAllowed, | 376 extensions::pref_names::kAppFullscreenAllowed, |
376 base::Value::TYPE_BOOLEAN }, | 377 base::Value::TYPE_BOOLEAN }, |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 793 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
793 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 794 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
794 handlers->AddHandler(make_scoped_ptr( | 795 handlers->AddHandler(make_scoped_ptr( |
795 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 796 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
796 #endif // defined(OS_CHROMEOS) | 797 #endif // defined(OS_CHROMEOS) |
797 | 798 |
798 return handlers.Pass(); | 799 return handlers.Pass(); |
799 } | 800 } |
800 | 801 |
801 } // namespace policy | 802 } // namespace policy |
OLD | NEW |