| 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_POLICY_CLOUD_POLICY_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "chrome/browser/policy/cloud_policy_constants.h" | 16 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 17 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 17 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 class DeviceManagementRequestJob; | 21 class DeviceManagementRequestJob; |
| 22 class DeviceManagementService; | 22 class DeviceManagementService; |
| 23 | 23 |
| 24 // Implements the core logic required to talk to the device management service. | 24 // Implements the core logic required to talk to the device management service. |
| 25 // Also keeps track of the current state of the association with the service, | 25 // Also keeps track of the current state of the association with the service, |
| 26 // such as whether there is a valid registration (DMToken is present in that | 26 // such as whether there is a valid registration (DMToken is present in that |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 DeviceManagementStatus status_; | 209 DeviceManagementStatus status_; |
| 210 | 210 |
| 211 ObserverList<Observer, true> observers_; | 211 ObserverList<Observer, true> observers_; |
| 212 | 212 |
| 213 private: | 213 private: |
| 214 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); | 214 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace policy | 217 } // namespace policy |
| 218 | 218 |
| 219 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 219 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ |
| OLD | NEW |