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_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h" | 17 #include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h" |
18 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
19 #include "components/policy/core/common/cloud/cloud_policy_manager.h" | 19 #include "components/policy/core/common/cloud/cloud_policy_manager.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class SequencedTaskRunner; | 22 class SequencedTaskRunner; |
23 } | 23 } |
24 | 24 |
25 namespace chromeos { | 25 namespace chromeos { |
| 26 |
| 27 class InstallAttributes; |
| 28 |
26 namespace attestation { | 29 namespace attestation { |
27 class AttestationPolicyObserver; | 30 class AttestationPolicyObserver; |
28 } | 31 } |
29 } | 32 } |
30 | 33 |
31 class PrefRegistrySimple; | 34 class PrefRegistrySimple; |
32 class PrefService; | 35 class PrefService; |
33 | 36 |
34 namespace policy { | 37 namespace policy { |
35 | 38 |
36 class DeviceCloudPolicyStoreChromeOS; | 39 class DeviceCloudPolicyStoreChromeOS; |
37 class EnterpriseInstallAttributes; | |
38 class HeartbeatScheduler; | 40 class HeartbeatScheduler; |
39 class StatusUploader; | 41 class StatusUploader; |
40 class SystemLogUploader; | 42 class SystemLogUploader; |
41 | 43 |
42 enum class ZeroTouchEnrollmentMode { DISABLED, ENABLED, FORCED }; | 44 enum class ZeroTouchEnrollmentMode { DISABLED, ENABLED, FORCED }; |
43 | 45 |
44 // CloudPolicyManager specialization for device policy on Chrome OS. | 46 // CloudPolicyManager specialization for device policy on Chrome OS. |
45 class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { | 47 class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
46 public: | 48 public: |
47 class Observer { | 49 class Observer { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Returns the mode for using zero-touch enrollment. | 96 // Returns the mode for using zero-touch enrollment. |
95 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode(); | 97 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode(); |
96 | 98 |
97 // Returns the robot 'email address' associated with the device robot | 99 // Returns the robot 'email address' associated with the device robot |
98 // account (sometimes called a service account) associated with this device | 100 // account (sometimes called a service account) associated with this device |
99 // during enterprise enrollment. | 101 // during enterprise enrollment. |
100 std::string GetRobotAccountId(); | 102 std::string GetRobotAccountId(); |
101 | 103 |
102 // Starts the connection via |client_to_connect|. | 104 // Starts the connection via |client_to_connect|. |
103 void StartConnection(std::unique_ptr<CloudPolicyClient> client_to_connect, | 105 void StartConnection(std::unique_ptr<CloudPolicyClient> client_to_connect, |
104 EnterpriseInstallAttributes* install_attributes); | 106 chromeos::InstallAttributes* install_attributes); |
105 | 107 |
106 // Sends the unregister request. |callback| is invoked with a boolean | 108 // Sends the unregister request. |callback| is invoked with a boolean |
107 // parameter indicating the result when done. | 109 // parameter indicating the result when done. |
108 virtual void Unregister(const UnregisterCallback& callback); | 110 virtual void Unregister(const UnregisterCallback& callback); |
109 | 111 |
110 // Disconnects the manager. | 112 // Disconnects the manager. |
111 virtual void Disconnect(); | 113 virtual void Disconnect(); |
112 | 114 |
113 DeviceCloudPolicyStoreChromeOS* device_store() { | 115 DeviceCloudPolicyStoreChromeOS* device_store() { |
114 return device_store_.get(); | 116 return device_store_.get(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 attestation_policy_observer_; | 161 attestation_policy_observer_; |
160 | 162 |
161 base::ObserverList<Observer, true> observers_; | 163 base::ObserverList<Observer, true> observers_; |
162 | 164 |
163 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 165 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
164 }; | 166 }; |
165 | 167 |
166 } // namespace policy | 168 } // namespace policy |
167 | 169 |
168 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
OLD | NEW |