Chromium Code Reviews| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 const DeviceLocalAccount& account, | 62 const DeviceLocalAccount& account, |
| 63 const base::FilePath& component_policy_cache_path, | 63 const base::FilePath& component_policy_cache_path, |
| 64 std::unique_ptr<DeviceLocalAccountPolicyStore> store, | 64 std::unique_ptr<DeviceLocalAccountPolicyStore> store, |
| 65 scoped_refptr<DeviceLocalAccountExternalDataManager> | 65 scoped_refptr<DeviceLocalAccountExternalDataManager> |
| 66 external_data_manager, | 66 external_data_manager, |
| 67 const base::Closure& policy_updated_callback, | 67 const base::Closure& policy_updated_callback, |
| 68 const scoped_refptr<base::SequencedTaskRunner>& task_runner, | 68 const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
| 69 AffiliatedInvalidationServiceProvider* invalidation_service_provider); | 69 AffiliatedInvalidationServiceProvider* invalidation_service_provider); |
| 70 ~DeviceLocalAccountPolicyBroker() override; | 70 ~DeviceLocalAccountPolicyBroker() override; |
| 71 | 71 |
| 72 // Initialize the broker, loading its |store_|. | 72 // Initialize the broker, loading its |store_|. |
|
emaxx
2017/02/22 17:24:33
Worth mentioning explicitly that this actually jus
Sergey Poromov
2017/02/28 14:01:17
Done.
| |
| 73 void Initialize(); | 73 void Initialize(); |
| 74 | 74 |
| 75 // Loads store synchronously. | |
| 76 void LoadImmediately(); | |
| 77 | |
| 75 // For the difference between |account_id| and |user_id|, see the | 78 // For the difference between |account_id| and |user_id|, see the |
| 76 // documentation of DeviceLocalAccount. | 79 // documentation of DeviceLocalAccount. |
| 77 const std::string& account_id() const { return account_id_; } | 80 const std::string& account_id() const { return account_id_; } |
| 78 const std::string& user_id() const { return user_id_; } | 81 const std::string& user_id() const { return user_id_; } |
| 79 | 82 |
| 80 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader> | 83 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader> |
| 81 extension_loader() const { return extension_loader_; } | 84 extension_loader() const { return extension_loader_; } |
| 82 | 85 |
| 83 CloudPolicyCore* core() { return &core_; } | 86 CloudPolicyCore* core() { return &core_; } |
| 84 const CloudPolicyCore* core() const { return &core_; } | 87 const CloudPolicyCore* core() const { return &core_; } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 base::FilePath component_policy_cache_root_; | 279 base::FilePath component_policy_cache_root_; |
| 277 | 280 |
| 278 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; | 281 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; |
| 279 | 282 |
| 280 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); | 283 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); |
| 281 }; | 284 }; |
| 282 | 285 |
| 283 } // namespace policy | 286 } // namespace policy |
| 284 | 287 |
| 285 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 288 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
| OLD | NEW |