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

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

Issue 7634018: base: Rename ValueType to something less redundant as _just_ Type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
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_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 18 matching lines...) Expand all
29 virtual ~Observer() {} 29 virtual ~Observer() {}
30 virtual void OnUpdatePolicy() = 0; 30 virtual void OnUpdatePolicy() = 0;
31 virtual void OnProviderGoingAway() = 0; 31 virtual void OnProviderGoingAway() = 0;
32 }; 32 };
33 33
34 // Used for static arrays of policy values that is used to initialize an 34 // Used for static arrays of policy values that is used to initialize an
35 // instance of the ConfigurationPolicyProvider. 35 // instance of the ConfigurationPolicyProvider.
36 struct PolicyDefinitionList { 36 struct PolicyDefinitionList {
37 struct Entry { 37 struct Entry {
38 ConfigurationPolicyType policy_type; 38 ConfigurationPolicyType policy_type;
39 Value::ValueType value_type; 39 base::Value::Type value_type;
40 const char* name; 40 const char* name;
41 }; 41 };
42 42
43 const Entry* begin; 43 const Entry* begin;
44 const Entry* end; 44 const Entry* end;
45 }; 45 };
46 46
47 explicit ConfigurationPolicyProvider(const PolicyDefinitionList* policy_list); 47 explicit ConfigurationPolicyProvider(const PolicyDefinitionList* policy_list);
48 48
49 virtual ~ConfigurationPolicyProvider(); 49 virtual ~ConfigurationPolicyProvider();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 private: 114 private:
115 ConfigurationPolicyProvider* provider_; 115 ConfigurationPolicyProvider* provider_;
116 ConfigurationPolicyProvider::Observer* observer_; 116 ConfigurationPolicyProvider::Observer* observer_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyObserverRegistrar); 118 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyObserverRegistrar);
119 }; 119 };
120 120
121 } // namespace policy 121 } // namespace policy
122 122
123 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_ 123 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.cc ('k') | chrome/browser/prefs/default_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698