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> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual void Disconnect(); | 109 virtual void Disconnect(); |
110 | 110 |
111 DeviceCloudPolicyStoreChromeOS* device_store() { | 111 DeviceCloudPolicyStoreChromeOS* device_store() { |
112 return device_store_.get(); | 112 return device_store_.get(); |
113 } | 113 } |
114 | 114 |
115 // Return the StatusUploader used to communicate device status to the | 115 // Return the StatusUploader used to communicate device status to the |
116 // policy server. | 116 // policy server. |
117 StatusUploader* GetStatusUploader() const { return status_uploader_.get(); } | 117 StatusUploader* GetStatusUploader() const { return status_uploader_.get(); } |
118 | 118 |
| 119 // Return the SystemLogUploader used to upload device logs to the policy |
| 120 // server. |
| 121 SystemLogUploader* GetSystemLogUploader() const { |
| 122 return syslog_uploader_.get(); |
| 123 } |
| 124 |
119 // Passes the pointer to the schema registry that corresponds to the signin | 125 // Passes the pointer to the schema registry that corresponds to the signin |
120 // profile. | 126 // profile. |
121 // | 127 // |
122 // After this method is called, the component cloud policy manager becomes | 128 // After this method is called, the component cloud policy manager becomes |
123 // associated with this schema registry. | 129 // associated with this schema registry. |
124 void SetSigninProfileSchemaRegistry(SchemaRegistry* schema_registry); | 130 void SetSigninProfileSchemaRegistry(SchemaRegistry* schema_registry); |
125 | 131 |
126 // Sets whether the component cloud policy should be disabled (by skipping | 132 // Sets whether the component cloud policy should be disabled (by skipping |
127 // the component cloud policy service creation). | 133 // the component cloud policy service creation). |
128 void set_component_policy_disabled_for_testing( | 134 void set_component_policy_disabled_for_testing( |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool component_policy_disabled_for_testing_ = false; | 187 bool component_policy_disabled_for_testing_ = false; |
182 | 188 |
183 base::ObserverList<Observer, true> observers_; | 189 base::ObserverList<Observer, true> observers_; |
184 | 190 |
185 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 191 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
186 }; | 192 }; |
187 | 193 |
188 } // namespace policy | 194 } // namespace policy |
189 | 195 |
190 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 196 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
OLD | NEW |