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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // parameter indicating the result when done. | 98 // parameter indicating the result when done. |
99 virtual void Unregister(const UnregisterCallback& callback); | 99 virtual void Unregister(const UnregisterCallback& callback); |
100 | 100 |
101 // Disconnects the manager. | 101 // Disconnects the manager. |
102 virtual void Disconnect(); | 102 virtual void Disconnect(); |
103 | 103 |
104 DeviceCloudPolicyStoreChromeOS* device_store() { | 104 DeviceCloudPolicyStoreChromeOS* device_store() { |
105 return device_store_.get(); | 105 return device_store_.get(); |
106 } | 106 } |
107 | 107 |
108 bool HasStatusUploaderForTest() { return status_uploader_; } | 108 // Return the StatusUploader used to communicate device status to the |
| 109 // policy server. |
| 110 StatusUploader* GetStatusUploader() const { return status_uploader_.get(); } |
109 | 111 |
110 private: | 112 private: |
111 // Saves the state keys received from |session_manager_client_|. | 113 // Saves the state keys received from |session_manager_client_|. |
112 void OnStateKeysUpdated(); | 114 void OnStateKeysUpdated(); |
113 | 115 |
114 // Initializes requisition settings at OOBE with values from VPD. | 116 // Initializes requisition settings at OOBE with values from VPD. |
115 void InitializeRequisition(); | 117 void InitializeRequisition(); |
116 | 118 |
117 void NotifyConnected(); | 119 void NotifyConnected(); |
118 void NotifyDisconnected(); | 120 void NotifyDisconnected(); |
(...skipping 26 matching lines...) Expand all Loading... |
145 attestation_policy_observer_; | 147 attestation_policy_observer_; |
146 | 148 |
147 ObserverList<Observer, true> observers_; | 149 ObserverList<Observer, true> observers_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 151 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace policy | 154 } // namespace policy |
153 | 155 |
154 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 156 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
OLD | NEW |