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

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

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 2010 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_DELEGATE_WIN_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_DELEGATE_WIN_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_DELEGATE_WIN_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_DELEGATE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/policy/asynchronous_policy_provider.h" 9 #include "chrome/browser/policy/asynchronous_policy_provider.h"
10 10
11 namespace policy { 11 namespace policy {
12 12
13 class ConfigurationPolicyProviderDelegateWin 13 class ConfigurationPolicyProviderDelegateWin
14 : public AsynchronousPolicyProvider::Delegate { 14 : public AsynchronousPolicyProvider::Delegate {
15 public: 15 public:
16 ConfigurationPolicyProviderDelegateWin( 16 explicit ConfigurationPolicyProviderDelegateWin(
17 const ConfigurationPolicyProvider::PolicyDefinitionList* 17 const ConfigurationPolicyProvider::PolicyDefinitionList*
18 policy_definition_list); 18 policy_definition_list);
19 virtual ~ConfigurationPolicyProviderDelegateWin() {} 19 virtual ~ConfigurationPolicyProviderDelegateWin() {}
20 20
21 // AsynchronousPolicyProvider::Delegate overrides: 21 // AsynchronousPolicyProvider::Delegate overrides:
22 virtual DictionaryValue* Load(); 22 virtual DictionaryValue* Load() OVERRIDE;
23 23
24 private: 24 private:
25 // Methods to perform type-specific policy lookups in the registry. 25 // Methods to perform type-specific policy lookups in the registry.
26 // HKLM is checked first, then HKCU. 26 // HKLM is checked first, then HKCU.
27 27
28 // Reads a string registry value |name| at the specified |key| and puts the 28 // Reads a string registry value |name| at the specified |key| and puts the
29 // resulting string in |result|. 29 // resulting string in |result|.
30 bool GetRegistryPolicyString(const string16& name, string16* result) const; 30 bool GetRegistryPolicyString(const string16& name, string16* result) const;
31 // Gets a list value contained under |key| one level below the policy root. 31 // Gets a list value contained under |key| one level below the policy root.
32 bool GetRegistryPolicyStringList(const string16& key, 32 bool GetRegistryPolicyStringList(const string16& key,
33 ListValue* result) const; 33 ListValue* result) const;
34 bool GetRegistryPolicyBoolean(const string16& value_name, 34 bool GetRegistryPolicyBoolean(const string16& value_name,
35 bool* result) const; 35 bool* result) const;
36 bool GetRegistryPolicyInteger(const string16& value_name, 36 bool GetRegistryPolicyInteger(const string16& value_name,
37 uint32* result) const; 37 uint32* result) const;
38 38
39 const ConfigurationPolicyProvider::PolicyDefinitionList* 39 const ConfigurationPolicyProvider::PolicyDefinitionList*
40 policy_definition_list_; 40 policy_definition_list_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderDelegateWin); 42 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderDelegateWin);
43 }; 43 };
44 44
45 } // namespace policy 45 } // namespace policy
46 46
47 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_DELEGATE_WIN_H_ 47 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_DELEGATE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698