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

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

Issue 10545033: Removed the PolicyDefinitionList from the ConfigurationPolicyProvider interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CLOUD_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chrome/browser/policy/cloud_policy_cache_base.h" 12 #include "chrome/browser/policy/cloud_policy_cache_base.h"
13 #include "chrome/browser/policy/configuration_policy_provider.h" 13 #include "chrome/browser/policy/configuration_policy_provider.h"
14 14
15 namespace policy { 15 namespace policy {
16 16
17 class BrowserPolicyConnector; 17 class BrowserPolicyConnector;
18 18
19 // A policy provider that merges the policies contained in the caches it 19 // A policy provider that merges the policies contained in the caches it
20 // observes. The caches receive their policies by fetching them from the cloud, 20 // observes. The caches receive their policies by fetching them from the cloud,
21 // through the CloudPolicyController. 21 // through the CloudPolicyController.
22 class CloudPolicyProvider : public ConfigurationPolicyProvider, 22 class CloudPolicyProvider : public ConfigurationPolicyProvider,
23 public CloudPolicyCacheBase::Observer { 23 public CloudPolicyCacheBase::Observer {
24 public: 24 public:
25 CloudPolicyProvider(BrowserPolicyConnector* browser_policy_connector, 25 CloudPolicyProvider(BrowserPolicyConnector* browser_policy_connector,
26 const PolicyDefinitionList* policy_list,
27 PolicyLevel level); 26 PolicyLevel level);
28 virtual ~CloudPolicyProvider(); 27 virtual ~CloudPolicyProvider();
29 28
30 // Sets the user policy cache. This must be invoked only once, and |cache| 29 // Sets the user policy cache. This must be invoked only once, and |cache|
31 // must not be NULL. 30 // must not be NULL.
32 void SetUserPolicyCache(CloudPolicyCacheBase* cache); 31 void SetUserPolicyCache(CloudPolicyCacheBase* cache);
33 32
34 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
35 // Sets the device policy cache. This must be invoked only once, and |cache| 34 // Sets the device policy cache. This must be invoked only once, and |cache|
36 // must not be NULL. 35 // must not be NULL.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Used to determine when updates due to a RefreshPolicies() call have been 74 // Used to determine when updates due to a RefreshPolicies() call have been
76 // completed. 75 // completed.
77 std::set<const CloudPolicyCacheBase*> pending_updates_; 76 std::set<const CloudPolicyCacheBase*> pending_updates_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(CloudPolicyProvider); 78 DISALLOW_COPY_AND_ASSIGN(CloudPolicyProvider);
80 }; 79 };
81 80
82 } // namespace policy 81 } // namespace policy
83 82
84 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_PROVIDER_H_ 83 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/cloud_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698