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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 23 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
24 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" | 24 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" |
25 #include "components/policy/core/browser/proxy_policy_handler.h" | 25 #include "components/policy/core/browser/proxy_policy_handler.h" |
26 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 26 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
27 #include "components/policy/core/common/policy_details.h" | 27 #include "components/policy/core/common/policy_details.h" |
28 #include "components/policy/core/common/policy_map.h" | 28 #include "components/policy/core/common/policy_map.h" |
29 #include "components/policy/core/common/policy_pref_names.h" | 29 #include "components/policy/core/common/policy_pref_names.h" |
30 #include "components/policy/core/common/schema.h" | 30 #include "components/policy/core/common/schema.h" |
31 #include "components/search_engines/default_search_policy_handler.h" | 31 #include "components/search_engines/default_search_policy_handler.h" |
32 #include "components/signin/core/common/signin_pref_names.h" | 32 #include "components/signin/core/common/signin_pref_names.h" |
| 33 #include "components/ssl_config/ssl_config_prefs.h" |
33 #include "components/translate/core/common/translate_pref_names.h" | 34 #include "components/translate/core/common/translate_pref_names.h" |
34 #include "components/variations/pref_names.h" | 35 #include "components/variations/pref_names.h" |
35 #include "policy/policy_constants.h" | 36 #include "policy/policy_constants.h" |
36 | 37 |
37 #if defined(OS_ANDROID) | 38 #if defined(OS_ANDROID) |
38 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 39 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
39 #endif | 40 #endif |
40 | 41 |
41 #if !defined(OS_IOS) | 42 #if !defined(OS_IOS) |
42 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" | 43 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 { key::kDefaultNotificationsSetting, | 210 { key::kDefaultNotificationsSetting, |
210 prefs::kManagedDefaultNotificationsSetting, | 211 prefs::kManagedDefaultNotificationsSetting, |
211 base::Value::TYPE_INTEGER }, | 212 base::Value::TYPE_INTEGER }, |
212 { key::kDefaultGeolocationSetting, | 213 { key::kDefaultGeolocationSetting, |
213 prefs::kManagedDefaultGeolocationSetting, | 214 prefs::kManagedDefaultGeolocationSetting, |
214 base::Value::TYPE_INTEGER }, | 215 base::Value::TYPE_INTEGER }, |
215 { key::kSigninAllowed, | 216 { key::kSigninAllowed, |
216 prefs::kSigninAllowed, | 217 prefs::kSigninAllowed, |
217 base::Value::TYPE_BOOLEAN }, | 218 base::Value::TYPE_BOOLEAN }, |
218 { key::kEnableOnlineRevocationChecks, | 219 { key::kEnableOnlineRevocationChecks, |
219 prefs::kCertRevocationCheckingEnabled, | 220 ssl_config::prefs::kCertRevocationCheckingEnabled, |
220 base::Value::TYPE_BOOLEAN }, | 221 base::Value::TYPE_BOOLEAN }, |
221 { key::kRequireOnlineRevocationChecksForLocalAnchors, | 222 { key::kRequireOnlineRevocationChecksForLocalAnchors, |
222 prefs::kCertRevocationCheckingRequiredLocalAnchors, | 223 ssl_config::prefs::kCertRevocationCheckingRequiredLocalAnchors, |
223 base::Value::TYPE_BOOLEAN }, | 224 base::Value::TYPE_BOOLEAN }, |
224 { key::kAuthSchemes, | 225 { key::kAuthSchemes, |
225 prefs::kAuthSchemes, | 226 prefs::kAuthSchemes, |
226 base::Value::TYPE_STRING }, | 227 base::Value::TYPE_STRING }, |
227 { key::kDisableAuthNegotiateCnameLookup, | 228 { key::kDisableAuthNegotiateCnameLookup, |
228 prefs::kDisableAuthNegotiateCnameLookup, | 229 prefs::kDisableAuthNegotiateCnameLookup, |
229 base::Value::TYPE_BOOLEAN }, | 230 base::Value::TYPE_BOOLEAN }, |
230 { key::kEnableAuthNegotiatePort, | 231 { key::kEnableAuthNegotiatePort, |
231 prefs::kEnableAuthNegotiatePort, | 232 prefs::kEnableAuthNegotiatePort, |
232 base::Value::TYPE_BOOLEAN }, | 233 base::Value::TYPE_BOOLEAN }, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 { key::kVariationsRestrictParameter, | 361 { key::kVariationsRestrictParameter, |
361 variations::prefs::kVariationsRestrictParameter, | 362 variations::prefs::kVariationsRestrictParameter, |
362 base::Value::TYPE_STRING }, | 363 base::Value::TYPE_STRING }, |
363 { key::kSupervisedUserCreationEnabled, | 364 { key::kSupervisedUserCreationEnabled, |
364 prefs::kSupervisedUserCreationAllowed, | 365 prefs::kSupervisedUserCreationAllowed, |
365 base::Value::TYPE_BOOLEAN }, | 366 base::Value::TYPE_BOOLEAN }, |
366 { key::kForceEphemeralProfiles, | 367 { key::kForceEphemeralProfiles, |
367 prefs::kForceEphemeralProfiles, | 368 prefs::kForceEphemeralProfiles, |
368 base::Value::TYPE_BOOLEAN }, | 369 base::Value::TYPE_BOOLEAN }, |
369 { key::kSSLVersionFallbackMin, | 370 { key::kSSLVersionFallbackMin, |
370 prefs::kSSLVersionFallbackMin, | 371 ssl_config::prefs::kSSLVersionFallbackMin, |
371 base::Value::TYPE_STRING }, | 372 base::Value::TYPE_STRING }, |
372 | 373 |
373 #if !defined(OS_MACOSX) && !defined(OS_IOS) | 374 #if !defined(OS_MACOSX) && !defined(OS_IOS) |
374 { key::kFullscreenAllowed, | 375 { key::kFullscreenAllowed, |
375 prefs::kFullscreenAllowed, | 376 prefs::kFullscreenAllowed, |
376 base::Value::TYPE_BOOLEAN }, | 377 base::Value::TYPE_BOOLEAN }, |
377 #if defined(ENABLE_EXTENSIONS) | 378 #if defined(ENABLE_EXTENSIONS) |
378 { key::kFullscreenAllowed, | 379 { key::kFullscreenAllowed, |
379 extensions::pref_names::kAppFullscreenAllowed, | 380 extensions::pref_names::kAppFullscreenAllowed, |
380 base::Value::TYPE_BOOLEAN }, | 381 base::Value::TYPE_BOOLEAN }, |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 797 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
797 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 798 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
798 handlers->AddHandler(make_scoped_ptr( | 799 handlers->AddHandler(make_scoped_ptr( |
799 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 800 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
800 #endif // defined(OS_CHROMEOS) | 801 #endif // defined(OS_CHROMEOS) |
801 | 802 |
802 return handlers.Pass(); | 803 return handlers.Pass(); |
803 } | 804 } |
804 | 805 |
805 } // namespace policy | 806 } // namespace policy |
OLD | NEW |