Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1278)

Side by Side Diff: chrome/browser/policy/configuration_policy_store_interface.h

Issue 6045003: (Re-landing http://codereview.chromium.org/5991003) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 kPolicyDefaultNotificationSetting, 59 kPolicyDefaultNotificationSetting,
60 kPolicyDefaultGeolocationSetting, 60 kPolicyDefaultGeolocationSetting,
61 kPolicyExtensionInstallForceList, 61 kPolicyExtensionInstallForceList,
62 kPolicyChromeOsLockOnIdleSuspend, 62 kPolicyChromeOsLockOnIdleSuspend,
63 kPolicyAuthSchemes, 63 kPolicyAuthSchemes,
64 kPolicyDisableAuthNegotiateCnameLookup, 64 kPolicyDisableAuthNegotiateCnameLookup,
65 kPolicyEnableAuthNegotiatePort, 65 kPolicyEnableAuthNegotiatePort,
66 kPolicyAuthServerWhitelist, 66 kPolicyAuthServerWhitelist,
67 kPolicyAuthNegotiateDelegateWhitelist, 67 kPolicyAuthNegotiateDelegateWhitelist,
68 kPolicyGSSAPILibraryName, 68 kPolicyGSSAPILibraryName,
69 kPolicyDisable3DAPIs
69 }; 70 };
70 71
71 static const int kPolicyNoProxyServerMode = 0; 72 static const int kPolicyNoProxyServerMode = 0;
72 static const int kPolicyAutoDetectProxyMode = 1; 73 static const int kPolicyAutoDetectProxyMode = 1;
73 static const int kPolicyManuallyConfiguredProxyMode = 2; 74 static const int kPolicyManuallyConfiguredProxyMode = 2;
74 static const int kPolicyUseSystemProxyMode = 3; 75 static const int kPolicyUseSystemProxyMode = 3;
75 76
76 // An abstract super class for policy stores that provides a method that can be 77 // An abstract super class for policy stores that provides a method that can be
77 // called by a |ConfigurationPolicyProvider| to specify a policy. 78 // called by a |ConfigurationPolicyProvider| to specify a policy.
78 class ConfigurationPolicyStoreInterface { 79 class ConfigurationPolicyStoreInterface {
79 public: 80 public:
80 virtual ~ConfigurationPolicyStoreInterface() {} 81 virtual ~ConfigurationPolicyStoreInterface() {}
81 82
82 // A |ConfigurationPolicyProvider| specifies the value of a policy 83 // A |ConfigurationPolicyProvider| specifies the value of a policy
83 // setting through a call to |Apply|. The configuration policy pref 84 // setting through a call to |Apply|. The configuration policy pref
84 // store takes over the ownership of |value|. 85 // store takes over the ownership of |value|.
85 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0; 86 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0;
86 87
87 protected: 88 protected:
88 ConfigurationPolicyStoreInterface() {} 89 ConfigurationPolicyStoreInterface() {}
89 90
90 private: 91 private:
91 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 92 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
92 }; 93 };
93 94
94 } // namespace policy 95 } // namespace policy
95 96
96 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 97 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698