OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEVICE_MANAGEMENT_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ |
6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Response could not be decoded. | 32 // Response could not be decoded. |
33 kErrorResponseDecoding, | 33 kErrorResponseDecoding, |
34 // Service error: Management not supported. | 34 // Service error: Management not supported. |
35 kErrorServiceManagementNotSupported, | 35 kErrorServiceManagementNotSupported, |
36 // Service error: Device not found. | 36 // Service error: Device not found. |
37 kErrorServiceDeviceNotFound, | 37 kErrorServiceDeviceNotFound, |
38 // Service error: Device token invalid. | 38 // Service error: Device token invalid. |
39 kErrorServiceManagementTokenInvalid, | 39 kErrorServiceManagementTokenInvalid, |
40 // Service error: Activation pending. | 40 // Service error: Activation pending. |
41 kErrorServiceActivationPending, | 41 kErrorServiceActivationPending, |
| 42 // Service error: Policy not found. |
| 43 kErrorServicePolicyNotFound, |
42 }; | 44 }; |
43 | 45 |
44 class DeviceRegisterResponseDelegate { | 46 class DeviceRegisterResponseDelegate { |
45 public: | 47 public: |
46 virtual ~DeviceRegisterResponseDelegate() {} | 48 virtual ~DeviceRegisterResponseDelegate() {} |
47 virtual void HandleRegisterResponse( | 49 virtual void HandleRegisterResponse( |
48 const em::DeviceRegisterResponse& response) = 0; | 50 const em::DeviceRegisterResponse& response) = 0; |
49 virtual void OnError(ErrorCode code) = 0; | 51 virtual void OnError(ErrorCode code) = 0; |
50 | 52 |
51 protected: | 53 protected: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 protected: | 109 protected: |
108 DeviceManagementBackend() {} | 110 DeviceManagementBackend() {} |
109 | 111 |
110 private: | 112 private: |
111 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); | 113 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); |
112 }; | 114 }; |
113 | 115 |
114 } // namespace policy | 116 } // namespace policy |
115 | 117 |
116 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ | 118 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ |
OLD | NEW |