| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Add a job to the pending job set and register it with the service (if | 57 // Add a job to the pending job set and register it with the service (if |
| 58 // available). | 58 // available). |
| 59 void AddJob(DeviceManagementJobBase* job); | 59 void AddJob(DeviceManagementJobBase* job); |
| 60 | 60 |
| 61 // DeviceManagementBackend overrides. | 61 // DeviceManagementBackend overrides. |
| 62 virtual void ProcessRegisterRequest( | 62 virtual void ProcessRegisterRequest( |
| 63 const std::string& gaia_auth_token, | 63 const std::string& gaia_auth_token, |
| 64 const std::string& oauth_token, | 64 const std::string& oauth_token, |
| 65 const std::string& device_id, | 65 const std::string& device_id, |
| 66 const em::DeviceRegisterRequest& request, | 66 const em::DeviceRegisterRequest& request, |
| 67 DeviceRegisterResponseDelegate* response_delegate); | 67 DeviceRegisterResponseDelegate* response_delegate) OVERRIDE; |
| 68 virtual void ProcessUnregisterRequest( | 68 virtual void ProcessUnregisterRequest( |
| 69 const std::string& device_management_token, | 69 const std::string& device_management_token, |
| 70 const std::string& device_id, | 70 const std::string& device_id, |
| 71 const em::DeviceUnregisterRequest& request, | 71 const em::DeviceUnregisterRequest& request, |
| 72 DeviceUnregisterResponseDelegate* response_delegate); | 72 DeviceUnregisterResponseDelegate* response_delegate) OVERRIDE; |
| 73 virtual void ProcessPolicyRequest( | 73 virtual void ProcessPolicyRequest( |
| 74 const std::string& device_management_token, | 74 const std::string& device_management_token, |
| 75 const std::string& device_id, | 75 const std::string& device_id, |
| 76 CloudPolicyDataStore::UserAffiliation affiliation, | 76 CloudPolicyDataStore::UserAffiliation affiliation, |
| 77 const em::DevicePolicyRequest& request, | 77 const em::DevicePolicyRequest& request, |
| 78 DevicePolicyResponseDelegate* response_delegate); | 78 DevicePolicyResponseDelegate* response_delegate) OVERRIDE; |
| 79 | 79 |
| 80 // Converts a user affiliation to the appropriate query parameter value. | 80 // Converts a user affiliation to the appropriate query parameter value. |
| 81 static const char* UserAffiliationToString( | 81 static const char* UserAffiliationToString( |
| 82 CloudPolicyDataStore::UserAffiliation affiliation); | 82 CloudPolicyDataStore::UserAffiliation affiliation); |
| 83 | 83 |
| 84 // Keeps track of the jobs currently in flight. | 84 // Keeps track of the jobs currently in flight. |
| 85 JobSet pending_jobs_; | 85 JobSet pending_jobs_; |
| 86 | 86 |
| 87 DeviceManagementService* service_; | 87 DeviceManagementService* service_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); | 89 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace policy | 92 } // namespace policy |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ | 94 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ |
| OLD | NEW |