| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTERNAL_DATA_SERVIC
E_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA_SERVIC
E_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA_SERVIC
E_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA_SERVIC
E_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class DeviceLocalAccountExternalDataService | 29 class DeviceLocalAccountExternalDataService |
| 30 : public DeviceLocalAccountPolicyService::Observer { | 30 : public DeviceLocalAccountPolicyService::Observer { |
| 31 public: | 31 public: |
| 32 DeviceLocalAccountExternalDataService( | 32 DeviceLocalAccountExternalDataService( |
| 33 DeviceLocalAccountPolicyService* parent, | 33 DeviceLocalAccountPolicyService* parent, |
| 34 scoped_refptr<base::SequencedTaskRunner> backend_task_runner, | 34 scoped_refptr<base::SequencedTaskRunner> backend_task_runner, |
| 35 scoped_refptr<base::SequencedTaskRunner> io_task_runner); | 35 scoped_refptr<base::SequencedTaskRunner> io_task_runner); |
| 36 virtual ~DeviceLocalAccountExternalDataService(); | 36 virtual ~DeviceLocalAccountExternalDataService(); |
| 37 | 37 |
| 38 // DeviceLocalAccountPolicyService::Observer: | 38 // DeviceLocalAccountPolicyService::Observer: |
| 39 virtual void OnPolicyUpdated(const std::string& user_id) OVERRIDE; | 39 virtual void OnPolicyUpdated(const std::string& user_id) override; |
| 40 virtual void OnDeviceLocalAccountsChanged() OVERRIDE; | 40 virtual void OnDeviceLocalAccountsChanged() override; |
| 41 | 41 |
| 42 scoped_refptr<DeviceLocalAccountExternalDataManager> | 42 scoped_refptr<DeviceLocalAccountExternalDataManager> |
| 43 GetExternalDataManager(const std::string& account_id, | 43 GetExternalDataManager(const std::string& account_id, |
| 44 CloudPolicyStore* policy_store); | 44 CloudPolicyStore* policy_store); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 typedef std::map<std::string, | 47 typedef std::map<std::string, |
| 48 scoped_refptr<DeviceLocalAccountExternalDataManager> > | 48 scoped_refptr<DeviceLocalAccountExternalDataManager> > |
| 49 ExternalDataManagerMap; | 49 ExternalDataManagerMap; |
| 50 | 50 |
| 51 DeviceLocalAccountPolicyService* parent_; | 51 DeviceLocalAccountPolicyService* parent_; |
| 52 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_; | 52 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_; |
| 53 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; | 53 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; |
| 54 scoped_ptr<ResourceCache> resource_cache_; | 54 scoped_ptr<ResourceCache> resource_cache_; |
| 55 | 55 |
| 56 ExternalDataManagerMap external_data_managers_; | 56 ExternalDataManagerMap external_data_managers_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalDataService); | 58 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalDataService); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace policy | 61 } // namespace policy |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA_SER
VICE_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA_SER
VICE_H_ |
| OLD | NEW |