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

Side by Side Diff: chrome/browser/policy/user_cloud_policy_manager.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_USER_CLOUD_POLICY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_ 6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // UserCloudPolicyManager keeps track of all things user policy, drives the 24 // UserCloudPolicyManager keeps track of all things user policy, drives the
25 // corresponding cloud policy service and publishes policy through the 25 // corresponding cloud policy service and publishes policy through the
26 // ConfigurationPolicyProvider interface. 26 // ConfigurationPolicyProvider interface.
27 class UserCloudPolicyManager : public ConfigurationPolicyProvider, 27 class UserCloudPolicyManager : public ConfigurationPolicyProvider,
28 public CloudPolicyClient::Observer, 28 public CloudPolicyClient::Observer,
29 public CloudPolicyStore::Observer { 29 public CloudPolicyStore::Observer {
30 public: 30 public:
31 // If |wait_for_policy| fetch is true, IsInitializationComplete() will return 31 // If |wait_for_policy| fetch is true, IsInitializationComplete() will return
32 // false as long as there hasn't been a successful policy fetch. 32 // false as long as there hasn't been a successful policy fetch.
33 UserCloudPolicyManager(const PolicyDefinitionList* policy_list, 33 UserCloudPolicyManager(scoped_ptr<CloudPolicyStore> store,
34 scoped_ptr<CloudPolicyStore> store,
35 bool wait_for_policy_fetch); 34 bool wait_for_policy_fetch);
36 virtual ~UserCloudPolicyManager(); 35 virtual ~UserCloudPolicyManager();
37 36
38 #if defined(OS_CHROMEOS) 37 #if defined(OS_CHROMEOS)
39 // Creates a UserCloudPolicyService instance for the Chrome OS platform. 38 // Creates a UserCloudPolicyService instance for the Chrome OS platform.
40 static scoped_ptr<UserCloudPolicyManager> Create(bool wait_for_policy_fetch); 39 static scoped_ptr<UserCloudPolicyManager> Create(bool wait_for_policy_fetch);
41 #endif 40 #endif
42 41
43 // Initializes the cloud connection. |prefs| and |service| must stay valid 42 // Initializes the cloud connection. |prefs| and |service| must stay valid
44 // until Shutdown() gets called. 43 // until Shutdown() gets called.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 92
94 // The pref service to pass to the refresh scheduler on initialization. 93 // The pref service to pass to the refresh scheduler on initialization.
95 PrefService* prefs_; 94 PrefService* prefs_;
96 95
97 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManager); 96 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManager);
98 }; 97 };
99 98
100 } // namespace policy 99 } // namespace policy
101 100
102 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_ 101 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/proxy_policy_provider.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698