OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "chrome/browser/policy/cloud_policy_data_store.h" |
13 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
14 | 15 |
15 namespace policy { | 16 namespace policy { |
16 | 17 |
17 namespace em = enterprise_management; | 18 namespace em = enterprise_management; |
18 | 19 |
19 // Interface for clients that need to converse with the device management | 20 // Interface for clients that need to converse with the device management |
20 // server, which provides services to register Chrome installations and CrOS | 21 // server, which provides services to register Chrome installations and CrOS |
21 // devices for the purpose of fetching centrally-administered policy from the | 22 // devices for the purpose of fetching centrally-administered policy from the |
22 // cloud. | 23 // cloud. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 virtual void ProcessUnregisterRequest( | 101 virtual void ProcessUnregisterRequest( |
101 const std::string& device_management_token, | 102 const std::string& device_management_token, |
102 const std::string& device_id, | 103 const std::string& device_id, |
103 const em::DeviceUnregisterRequest& request, | 104 const em::DeviceUnregisterRequest& request, |
104 DeviceUnregisterResponseDelegate* delegate) = 0; | 105 DeviceUnregisterResponseDelegate* delegate) = 0; |
105 | 106 |
106 virtual void ProcessPolicyRequest( | 107 virtual void ProcessPolicyRequest( |
107 const std::string& device_management_token, | 108 const std::string& device_management_token, |
108 const std::string& device_id, | 109 const std::string& device_id, |
| 110 CloudPolicyDataStore::UserAffiliation user_affiliation, |
109 const em::DevicePolicyRequest& request, | 111 const em::DevicePolicyRequest& request, |
110 DevicePolicyResponseDelegate* delegate) = 0; | 112 DevicePolicyResponseDelegate* delegate) = 0; |
111 | 113 |
112 protected: | 114 protected: |
113 DeviceManagementBackend() {} | 115 DeviceManagementBackend() {} |
114 | 116 |
115 private: | 117 private: |
116 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); | 118 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); |
117 }; | 119 }; |
118 | 120 |
119 } // namespace policy | 121 } // namespace policy |
120 | 122 |
121 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ | 123 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ |
OLD | NEW |