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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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
« no previous file with comments | « chrome/browser/plugin_updater.h ('k') | chrome/browser/prefs/command_line_pref_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "policy/configuration_policy_type.h" 10 #include "policy/configuration_policy_type.h"
11 11
12 namespace base {
12 class Value; 13 class Value;
14 }
13 15
14 namespace policy { 16 namespace policy {
15 17
16 // Constants for the "Proxy Server Mode" defined in the policies. 18 // Constants for the "Proxy Server Mode" defined in the policies.
17 // Note that these diverge from internal presentation defined in 19 // Note that these diverge from internal presentation defined in
18 // ProxyPrefs::ProxyMode for legacy reasons. The following four 20 // ProxyPrefs::ProxyMode for legacy reasons. The following four
19 // PolicyProxyModeType types were not very precise and had overlapping use 21 // PolicyProxyModeType types were not very precise and had overlapping use
20 // cases. 22 // cases.
21 enum PolicyProxyModeType { 23 enum PolicyProxyModeType {
22 // Disable Proxy, connect directly. 24 // Disable Proxy, connect directly.
(...skipping 10 matching lines...) Expand all
33 35
34 // An abstract super class for policy stores that provides a method that can be 36 // An abstract super class for policy stores that provides a method that can be
35 // called by a |ConfigurationPolicyProvider| to specify a policy. 37 // called by a |ConfigurationPolicyProvider| to specify a policy.
36 class ConfigurationPolicyStoreInterface { 38 class ConfigurationPolicyStoreInterface {
37 public: 39 public:
38 virtual ~ConfigurationPolicyStoreInterface() {} 40 virtual ~ConfigurationPolicyStoreInterface() {}
39 41
40 // A |ConfigurationPolicyProvider| specifies the value of a policy 42 // A |ConfigurationPolicyProvider| specifies the value of a policy
41 // setting through a call to |Apply|. The configuration policy pref 43 // setting through a call to |Apply|. The configuration policy pref
42 // store takes over the ownership of |value|. 44 // store takes over the ownership of |value|.
43 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0; 45 virtual void Apply(ConfigurationPolicyType policy, base::Value* value) = 0;
44 46
45 protected: 47 protected:
46 ConfigurationPolicyStoreInterface() {} 48 ConfigurationPolicyStoreInterface() {}
47 49
48 private: 50 private:
49 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 51 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
50 }; 52 };
51 53
52 } // namespace policy 54 } // namespace policy
53 55
54 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 56 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugin_updater.h ('k') | chrome/browser/prefs/command_line_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698