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_CLOUD_POLICY_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_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/callback.h" | 13 #include "base/callback.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 17 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
18 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
21 | 21 |
22 class DeviceManagementRequestJob; | 22 class DeviceManagementRequestJob; |
23 class DeviceManagementService; | 23 class DeviceManagementService; |
24 | 24 |
25 // Implements the core logic required to talk to the device management service. | 25 // Implements the core logic required to talk to the device management service. |
26 // Also keeps track of the current state of the association with the service, | 26 // Also keeps track of the current state of the association with the service, |
27 // such as whether there is a valid registration (DMToken is present in that | 27 // such as whether there is a valid registration (DMToken is present in that |
28 // case) and whether and what errors occurred in the latest request. | 28 // case) and whether and what errors occurred in the latest request. |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 ObserverList<Observer, true> observers_; | 232 ObserverList<Observer, true> observers_; |
233 | 233 |
234 private: | 234 private: |
235 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); | 235 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace policy | 238 } // namespace policy |
239 | 239 |
240 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ | 240 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_ |
OLD | NEW |