| 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_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 scoped_refptr<net::URLRequestContextGetter> request_context); | 97 scoped_refptr<net::URLRequestContextGetter> request_context); |
| 98 | 98 |
| 99 // Reads the refresh delay from policy and configures the refresh scheduler. | 99 // Reads the refresh delay from policy and configures the refresh scheduler. |
| 100 void UpdateRefreshDelay(); | 100 void UpdateRefreshDelay(); |
| 101 | 101 |
| 102 // Retrieves the display name for the account as stored in policy. Returns an | 102 // Retrieves the display name for the account as stored in policy. Returns an |
| 103 // empty string if the policy is not present. | 103 // empty string if the policy is not present. |
| 104 std::string GetDisplayName() const; | 104 std::string GetDisplayName() const; |
| 105 | 105 |
| 106 // CloudPolicyStore::Observer: | 106 // CloudPolicyStore::Observer: |
| 107 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 107 virtual void OnStoreLoaded(CloudPolicyStore* store) override; |
| 108 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; | 108 virtual void OnStoreError(CloudPolicyStore* store) override; |
| 109 | 109 |
| 110 // ComponentCloudPolicyService::Delegate: | 110 // ComponentCloudPolicyService::Delegate: |
| 111 virtual void OnComponentCloudPolicyUpdated() OVERRIDE; | 111 virtual void OnComponentCloudPolicyUpdated() override; |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 void CreateComponentCloudPolicyService( | 114 void CreateComponentCloudPolicyService( |
| 115 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 115 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
| 116 | 116 |
| 117 const std::string account_id_; | 117 const std::string account_id_; |
| 118 const std::string user_id_; | 118 const std::string user_id_; |
| 119 const base::FilePath component_policy_cache_path_; | 119 const base::FilePath component_policy_cache_path_; |
| 120 SchemaRegistry schema_registry_; | 120 SchemaRegistry schema_registry_; |
| 121 const scoped_ptr<DeviceLocalAccountPolicyStore> store_; | 121 const scoped_ptr<DeviceLocalAccountPolicyStore> store_; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 base::FilePath component_policy_cache_root_; | 265 base::FilePath component_policy_cache_root_; |
| 266 | 266 |
| 267 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; | 267 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; |
| 268 | 268 |
| 269 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); | 269 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace policy | 272 } // namespace policy |
| 273 | 273 |
| 274 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 274 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
| OLD | NEW |