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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: rebase Created 7 years, 1 month 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
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_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // The |access_token| can then be used to authenticate the registration 76 // The |access_token| can then be used to authenticate the registration
77 // request to the DMServer. 77 // request to the DMServer.
78 void OnAccessTokenAvailable(const std::string& access_token); 78 void OnAccessTokenAvailable(const std::string& access_token);
79 79
80 // Returns true if the underlying CloudPolicyClient is already registered. 80 // Returns true if the underlying CloudPolicyClient is already registered.
81 bool IsClientRegistered() const; 81 bool IsClientRegistered() const;
82 82
83 // ConfigurationPolicyProvider: 83 // ConfigurationPolicyProvider:
84 virtual void Shutdown() OVERRIDE; 84 virtual void Shutdown() OVERRIDE;
85 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE; 85 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
86 virtual void RegisterPolicyDomain( 86 virtual void OnSchemaRegistryUpdated(bool has_new_schemas) OVERRIDE;
87 scoped_refptr<const PolicyDomainDescriptor> descriptor) OVERRIDE;
88 87
89 // CloudPolicyManager: 88 // CloudPolicyManager:
90 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE; 89 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE;
91 90
92 // CloudPolicyService::Observer: 91 // CloudPolicyService::Observer:
93 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 92 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE;
94 93
95 // CloudPolicyClient::Observer: 94 // CloudPolicyClient::Observer:
96 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; 95 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
97 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; 96 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 base::Time time_init_completed_; 156 base::Time time_init_completed_;
158 base::Time time_token_available_; 157 base::Time time_token_available_;
159 base::Time time_client_registered_; 158 base::Time time_client_registered_;
160 159
161 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); 160 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS);
162 }; 161 };
163 162
164 } // namespace policy 163 } // namespace policy
165 164
166 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 165 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698