| OLD | NEW |
| 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 Loading... |
| 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( |
| 87 scoped_refptr<const PolicyDomainDescriptor> descriptor) OVERRIDE; | 87 const scoped_refptr<SchemaMap>& current_map, |
| 88 bool has_new_schemas) OVERRIDE; |
| 88 | 89 |
| 89 // CloudPolicyManager: | 90 // CloudPolicyManager: |
| 90 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE; | 91 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE; |
| 91 | 92 |
| 92 // CloudPolicyService::Observer: | 93 // CloudPolicyService::Observer: |
| 93 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; | 94 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; |
| 94 | 95 |
| 95 // CloudPolicyClient::Observer: | 96 // CloudPolicyClient::Observer: |
| 96 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; | 97 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; |
| 97 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; | 98 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 base::Time time_init_completed_; | 158 base::Time time_init_completed_; |
| 158 base::Time time_token_available_; | 159 base::Time time_token_available_; |
| 159 base::Time time_client_registered_; | 160 base::Time time_client_registered_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 162 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 } // namespace policy | 165 } // namespace policy |
| 165 | 166 |
| 166 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| OLD | NEW |