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

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

Issue 5701003: Intorduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indentation nit 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
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 kPolicyExtensionInstallForceList, 59 kPolicyExtensionInstallForceList,
60 kPolicyChromeOsLockOnIdleSuspend, 60 kPolicyChromeOsLockOnIdleSuspend,
61 kPolicyAuthSchemes, 61 kPolicyAuthSchemes,
62 kPolicyDisableAuthNegotiateCnameLookup, 62 kPolicyDisableAuthNegotiateCnameLookup,
63 kPolicyEnableAuthNegotiatePort, 63 kPolicyEnableAuthNegotiatePort,
64 kPolicyAuthServerWhitelist, 64 kPolicyAuthServerWhitelist,
65 kPolicyAuthNegotiateDelegateWhitelist, 65 kPolicyAuthNegotiateDelegateWhitelist,
66 kPolicyGSSAPILibraryName, 66 kPolicyGSSAPILibraryName,
67 }; 67 };
68 68
69 static const int kPolicyNoProxyServerMode = 0;
Mattias Nissler (ping if slow) 2010/12/20 13:34:03 Why not make these an enum?
battre (please use the other) 2010/12/21 14:18:18 I reintroduced these as an enum. As the internal r
70 static const int kPolicyAutoDetectProxyMode = 1;
71 static const int kPolicyManuallyConfiguredProxyMode = 2;
72 static const int kPolicyUseSystemProxyMode = 3;
73
74 // An abstract super class for policy stores that provides a method that can be 69 // An abstract super class for policy stores that provides a method that can be
75 // called by a |ConfigurationPolicyProvider| to specify a policy. 70 // called by a |ConfigurationPolicyProvider| to specify a policy.
76 class ConfigurationPolicyStoreInterface { 71 class ConfigurationPolicyStoreInterface {
77 public: 72 public:
78 virtual ~ConfigurationPolicyStoreInterface() {} 73 virtual ~ConfigurationPolicyStoreInterface() {}
79 74
80 // A |ConfigurationPolicyProvider| specifies the value of a policy 75 // A |ConfigurationPolicyProvider| specifies the value of a policy
81 // setting through a call to |Apply|. The configuration policy pref 76 // setting through a call to |Apply|. The configuration policy pref
82 // store takes over the ownership of |value|. 77 // store takes over the ownership of |value|.
83 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0; 78 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0;
84 79
85 protected: 80 protected:
86 ConfigurationPolicyStoreInterface() {} 81 ConfigurationPolicyStoreInterface() {}
87 82
88 private: 83 private:
89 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 84 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
90 }; 85 };
91 86
92 } // namespace policy 87 } // namespace policy
93 88
94 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 89 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698