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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 | 69 |
70 private: | 70 private: |
71 DISALLOW_COPY_AND_ASSIGN(DeviceUnregisterResponseDelegate); | 71 DISALLOW_COPY_AND_ASSIGN(DeviceUnregisterResponseDelegate); |
72 }; | 72 }; |
73 | 73 |
74 class DevicePolicyResponseDelegate { | 74 class DevicePolicyResponseDelegate { |
75 public: | 75 public: |
76 virtual ~DevicePolicyResponseDelegate() {} | 76 virtual ~DevicePolicyResponseDelegate() {} |
77 | 77 |
78 virtual void HandlePolicyResponse( | 78 virtual void HandlePolicyResponse( |
79 const em::DevicePolicyResponse& response) = 0; | 79 const em::DevicePolicyResponse& response) = 0; // deprecated. |
Mattias Nissler (ping if slow)
2011/02/02 12:27:55
Please explain why it's deprecated, what is used i
Jakob Kummerow
2011/02/03 14:36:52
Done.
| |
80 virtual void HandleCloudPolicyResponse( | |
81 const em::CloudPolicyResponse& response) = 0; | |
80 virtual void OnError(ErrorCode code) = 0; | 82 virtual void OnError(ErrorCode code) = 0; |
81 | 83 |
82 protected: | 84 protected: |
83 DevicePolicyResponseDelegate() {} | 85 DevicePolicyResponseDelegate() {} |
84 | 86 |
85 private: | 87 private: |
86 DISALLOW_COPY_AND_ASSIGN(DevicePolicyResponseDelegate); | 88 DISALLOW_COPY_AND_ASSIGN(DevicePolicyResponseDelegate); |
87 }; | 89 }; |
88 | 90 |
89 virtual ~DeviceManagementBackend() {} | 91 virtual ~DeviceManagementBackend() {} |
90 | 92 |
91 virtual void ProcessRegisterRequest( | 93 virtual void ProcessRegisterRequest( |
92 const std::string& auth_token, | 94 const std::string& auth_token, |
93 const std::string& device_id, | 95 const std::string& device_id, |
94 const em::DeviceRegisterRequest& request, | 96 const em::DeviceRegisterRequest& request, |
95 DeviceRegisterResponseDelegate* delegate) = 0; | 97 DeviceRegisterResponseDelegate* delegate) = 0; |
96 | 98 |
97 virtual void ProcessUnregisterRequest( | 99 virtual void ProcessUnregisterRequest( |
98 const std::string& device_management_token, | 100 const std::string& device_management_token, |
99 const std::string& device_id, | 101 const std::string& device_id, |
100 const em::DeviceUnregisterRequest& request, | 102 const em::DeviceUnregisterRequest& request, |
101 DeviceUnregisterResponseDelegate* delegate) = 0; | 103 DeviceUnregisterResponseDelegate* delegate) = 0; |
102 | 104 |
103 virtual void ProcessPolicyRequest( | 105 virtual void ProcessPolicyRequest( |
104 const std::string& device_management_token, | 106 const std::string& device_management_token, |
105 const std::string& device_id, | 107 const std::string& device_id, |
106 const em::DevicePolicyRequest& request, | 108 const em::DevicePolicyRequest& request, |
107 DevicePolicyResponseDelegate* delegate) = 0; | 109 DevicePolicyResponseDelegate* delegate) = 0; |
108 | 110 |
111 virtual void ProcessCloudPolicyRequest( | |
112 const std::string& device_management_token, | |
113 const std::string& device_id, | |
114 const em::CloudPolicyRequest& request, | |
115 DevicePolicyResponseDelegate* delegate) = 0; | |
116 | |
109 protected: | 117 protected: |
110 DeviceManagementBackend() {} | 118 DeviceManagementBackend() {} |
111 | 119 |
112 private: | 120 private: |
113 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); | 121 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); |
114 }; | 122 }; |
115 | 123 |
116 } // namespace policy | 124 } // namespace policy |
117 | 125 |
118 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ | 126 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ |
OLD | NEW |