| 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ |
| 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual void ProcessUnregisterRequest( | 69 virtual void ProcessUnregisterRequest( |
| 70 const std::string& device_management_token, | 70 const std::string& device_management_token, |
| 71 const std::string& device_id, | 71 const std::string& device_id, |
| 72 const em::DeviceUnregisterRequest& request, | 72 const em::DeviceUnregisterRequest& request, |
| 73 DeviceUnregisterResponseDelegate* response_delegate) OVERRIDE; | 73 DeviceUnregisterResponseDelegate* response_delegate) OVERRIDE; |
| 74 virtual void ProcessPolicyRequest( | 74 virtual void ProcessPolicyRequest( |
| 75 const std::string& device_management_token, | 75 const std::string& device_management_token, |
| 76 const std::string& device_id, | 76 const std::string& device_id, |
| 77 CloudPolicyDataStore::UserAffiliation affiliation, | 77 CloudPolicyDataStore::UserAffiliation affiliation, |
| 78 const em::DevicePolicyRequest& request, | 78 const em::DevicePolicyRequest& request, |
| 79 const em::DeviceStatusReportRequest* device_status, |
| 79 DevicePolicyResponseDelegate* response_delegate) OVERRIDE; | 80 DevicePolicyResponseDelegate* response_delegate) OVERRIDE; |
| 80 virtual void ProcessAutoEnrollmentRequest( | 81 virtual void ProcessAutoEnrollmentRequest( |
| 81 const std::string& device_id, | 82 const std::string& device_id, |
| 82 const em::DeviceAutoEnrollmentRequest& request, | 83 const em::DeviceAutoEnrollmentRequest& request, |
| 83 DeviceAutoEnrollmentResponseDelegate* delegate) OVERRIDE; | 84 DeviceAutoEnrollmentResponseDelegate* delegate) OVERRIDE; |
| 84 | 85 |
| 85 // Converts a user affiliation to the appropriate query parameter value. | 86 // Converts a user affiliation to the appropriate query parameter value. |
| 86 static const char* UserAffiliationToString( | 87 static const char* UserAffiliationToString( |
| 87 CloudPolicyDataStore::UserAffiliation affiliation); | 88 CloudPolicyDataStore::UserAffiliation affiliation); |
| 88 | 89 |
| 89 // Keeps track of the jobs currently in flight. | 90 // Keeps track of the jobs currently in flight. |
| 90 JobSet pending_jobs_; | 91 JobSet pending_jobs_; |
| 91 | 92 |
| 92 DeviceManagementService* service_; | 93 DeviceManagementService* service_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); | 95 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace policy | 98 } // namespace policy |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ | 100 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ |
| OLD | NEW |