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_STORE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 namespace chromeos { | 24 namespace chromeos { |
25 class SessionManagerClient; | 25 class SessionManagerClient; |
26 } | 26 } |
27 | 27 |
28 namespace enterprise_management { | 28 namespace enterprise_management { |
29 class PolicyFetchResponse; | 29 class PolicyFetchResponse; |
30 } | 30 } |
31 | 31 |
32 namespace policy { | 32 namespace policy { |
33 | 33 |
34 class DeviceLocalAccountPolicyBroker; | |
35 | |
36 // CloudPolicyStore implementation for device-local account policy. Stores/loads | 34 // CloudPolicyStore implementation for device-local account policy. Stores/loads |
37 // policy to/from session_manager. | 35 // policy to/from session_manager. |
38 class DeviceLocalAccountPolicyStore : public UserCloudPolicyStoreBase { | 36 class DeviceLocalAccountPolicyStore : public UserCloudPolicyStoreBase { |
39 public: | 37 public: |
40 DeviceLocalAccountPolicyStore( | 38 DeviceLocalAccountPolicyStore( |
41 const std::string& account_id, | 39 const std::string& account_id, |
42 chromeos::SessionManagerClient* client, | 40 chromeos::SessionManagerClient* client, |
43 chromeos::DeviceSettingsService* device_settings_service, | 41 chromeos::DeviceSettingsService* device_settings_service, |
44 scoped_refptr<base::SequencedTaskRunner> background_task_runner); | 42 scoped_refptr<base::SequencedTaskRunner> background_task_runner); |
45 ~DeviceLocalAccountPolicyStore() override; | 43 ~DeviceLocalAccountPolicyStore() override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; | 91 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; |
94 | 92 |
95 base::WeakPtrFactory<DeviceLocalAccountPolicyStore> weak_factory_; | 93 base::WeakPtrFactory<DeviceLocalAccountPolicyStore> weak_factory_; |
96 | 94 |
97 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyStore); | 95 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyStore); |
98 }; | 96 }; |
99 | 97 |
100 } // namespace policy | 98 } // namespace policy |
101 | 99 |
102 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
OLD | NEW |