| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 class PrefRegistrySimple; | 31 class PrefRegistrySimple; |
| 32 class PrefService; | 32 class PrefService; |
| 33 | 33 |
| 34 namespace policy { | 34 namespace policy { |
| 35 | 35 |
| 36 class DeviceCloudPolicyStoreChromeOS; | 36 class DeviceCloudPolicyStoreChromeOS; |
| 37 class EnterpriseInstallAttributes; | 37 class EnterpriseInstallAttributes; |
| 38 class HeartbeatScheduler; | 38 class HeartbeatScheduler; |
| 39 class StatusUploader; | 39 class StatusUploader; |
| 40 class SystemLogUploader; |
| 40 | 41 |
| 41 // CloudPolicyManager specialization for device policy on Chrome OS. | 42 // CloudPolicyManager specialization for device policy on Chrome OS. |
| 42 class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { | 43 class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
| 43 public: | 44 public: |
| 44 class Observer { | 45 class Observer { |
| 45 public: | 46 public: |
| 46 // Invoked when the device cloud policy manager connects. | 47 // Invoked when the device cloud policy manager connects. |
| 47 virtual void OnDeviceCloudPolicyManagerConnected() = 0; | 48 virtual void OnDeviceCloudPolicyManagerConnected() = 0; |
| 48 // Invoked when the device cloud policy manager disconnects. | 49 // Invoked when the device cloud policy manager disconnects. |
| 49 virtual void OnDeviceCloudPolicyManagerDisconnected() = 0; | 50 virtual void OnDeviceCloudPolicyManagerDisconnected() = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 125 |
| 125 // Points to the same object as the base CloudPolicyManager::store(), but with | 126 // Points to the same object as the base CloudPolicyManager::store(), but with |
| 126 // actual device policy specific type. | 127 // actual device policy specific type. |
| 127 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; | 128 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; |
| 128 ServerBackedStateKeysBroker* state_keys_broker_; | 129 ServerBackedStateKeysBroker* state_keys_broker_; |
| 129 | 130 |
| 130 // Helper object that handles updating the server with our current device | 131 // Helper object that handles updating the server with our current device |
| 131 // state. | 132 // state. |
| 132 scoped_ptr<StatusUploader> status_uploader_; | 133 scoped_ptr<StatusUploader> status_uploader_; |
| 133 | 134 |
| 135 // Helper object that handles uploading system logs to the server. |
| 136 scoped_ptr<SystemLogUploader> syslog_uploader_; |
| 137 |
| 134 // Helper object that handles sending heartbeats over the GCM channel to | 138 // Helper object that handles sending heartbeats over the GCM channel to |
| 135 // the server, to monitor connectivity. | 139 // the server, to monitor connectivity. |
| 136 scoped_ptr<HeartbeatScheduler> heartbeat_scheduler_; | 140 scoped_ptr<HeartbeatScheduler> heartbeat_scheduler_; |
| 137 | 141 |
| 138 // The TaskRunner used to do device status uploads. | 142 // The TaskRunner used to do device status and log uploads. |
| 139 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 143 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 140 | 144 |
| 141 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; | 145 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; |
| 142 | 146 |
| 143 // PrefService instance to read the policy refresh rate from. | 147 // PrefService instance to read the policy refresh rate from. |
| 144 PrefService* local_state_; | 148 PrefService* local_state_; |
| 145 | 149 |
| 146 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> | 150 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> |
| 147 attestation_policy_observer_; | 151 attestation_policy_observer_; |
| 148 | 152 |
| 149 base::ObserverList<Observer, true> observers_; | 153 base::ObserverList<Observer, true> observers_; |
| 150 | 154 |
| 151 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 155 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 152 }; | 156 }; |
| 153 | 157 |
| 154 } // namespace policy | 158 } // namespace policy |
| 155 | 159 |
| 156 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 160 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |