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

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

Issue 6272025: Part 2 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2011 Created 9 years, 10 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 <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // policy decisions. The preference service invokes this |Provide| method when 48 // policy decisions. The preference service invokes this |Provide| method when
49 // it needs a policy provider to specify its policy choices. In |Provide|, the 49 // it needs a policy provider to specify its policy choices. In |Provide|, the
50 // |ConfigurationPolicyProvider| must make calls to the |Apply| method of 50 // |ConfigurationPolicyProvider| must make calls to the |Apply| method of
51 // |store| to apply specific policies. Returns true if the policy could be 51 // |store| to apply specific policies. Returns true if the policy could be
52 // provided, otherwise false. 52 // provided, otherwise false.
53 virtual bool Provide(ConfigurationPolicyStoreInterface* store) = 0; 53 virtual bool Provide(ConfigurationPolicyStoreInterface* store) = 0;
54 54
55 // Check whether this provider has completed initialization. This is used to 55 // Check whether this provider has completed initialization. This is used to
56 // detect whether initialization is done in case providers implementations 56 // detect whether initialization is done in case providers implementations
57 // need to do asynchronous operations for initialization. 57 // need to do asynchronous operations for initialization.
58 virtual bool IsInitializationComplete() const { return true; } 58 virtual bool IsInitializationComplete() const;
59 59
60 protected: 60 protected:
61 // Decodes the value tree and writes the configuration to the given |store|. 61 // Decodes the value tree and writes the configuration to the given |store|.
62 void DecodePolicyValueTree(const DictionaryValue* policies, 62 void DecodePolicyValueTree(const DictionaryValue* policies,
63 ConfigurationPolicyStoreInterface* store); 63 ConfigurationPolicyStoreInterface* store);
64 64
65 const PolicyDefinitionList* policy_definition_list() const { 65 const PolicyDefinitionList* policy_definition_list() const {
66 return policy_definition_list_; 66 return policy_definition_list_;
67 } 67 }
68 68
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 private: 101 private:
102 ConfigurationPolicyProvider* provider_; 102 ConfigurationPolicyProvider* provider_;
103 ConfigurationPolicyProvider::Observer* observer_; 103 ConfigurationPolicyProvider::Observer* observer_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyObserverRegistrar); 105 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyObserverRegistrar);
106 }; 106 };
107 107
108 } // namespace policy 108 } // namespace policy
109 109
110 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_ 110 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698