Chromium Code Reviews| 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_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 18 matching lines...) Expand all Loading... | |
| 29 // Name constants for URL query parameters. | 29 // Name constants for URL query parameters. |
| 30 static const char kParamRequest[]; | 30 static const char kParamRequest[]; |
| 31 static const char kParamDeviceType[]; | 31 static const char kParamDeviceType[]; |
| 32 static const char kParamAppType[]; | 32 static const char kParamAppType[]; |
| 33 static const char kParamDeviceID[]; | 33 static const char kParamDeviceID[]; |
| 34 static const char kParamAgent[]; | 34 static const char kParamAgent[]; |
| 35 | 35 |
| 36 // String constants for the device and app type we report to the server. | 36 // String constants for the device and app type we report to the server. |
| 37 static const char kValueRequestRegister[]; | 37 static const char kValueRequestRegister[]; |
| 38 static const char kValueRequestUnregister[]; | 38 static const char kValueRequestUnregister[]; |
| 39 static const char kValueRequestPolicy[]; | 39 static const char kValueRequestPolicy[]; // deprecated. |
|
Mattias Nissler (ping if slow)
2011/02/02 12:27:55
same here, maybe put a reference to the other expl
Jakob Kummerow
2011/02/03 14:36:52
Done.
| |
| 40 static const char kValueRequestCloudPolicy[]; | |
| 40 static const char kValueDeviceType[]; | 41 static const char kValueDeviceType[]; |
| 41 static const char kValueAppType[]; | 42 static const char kValueAppType[]; |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 friend class DeviceManagementJobBase; | 45 friend class DeviceManagementJobBase; |
| 45 | 46 |
| 46 typedef std::set<DeviceManagementJobBase*> JobSet; | 47 typedef std::set<DeviceManagementJobBase*> JobSet; |
| 47 | 48 |
| 48 // Called by the DeviceManagementJobBase dtor so we can clean up. | 49 // Called by the DeviceManagementJobBase dtor so we can clean up. |
| 49 void JobDone(DeviceManagementJobBase* job); | 50 void JobDone(DeviceManagementJobBase* job); |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 60 DeviceRegisterResponseDelegate* response_delegate); | 61 DeviceRegisterResponseDelegate* response_delegate); |
| 61 virtual void ProcessUnregisterRequest( | 62 virtual void ProcessUnregisterRequest( |
| 62 const std::string& device_management_token, | 63 const std::string& device_management_token, |
| 63 const std::string& device_id, | 64 const std::string& device_id, |
| 64 const em::DeviceUnregisterRequest& request, | 65 const em::DeviceUnregisterRequest& request, |
| 65 DeviceUnregisterResponseDelegate* response_delegate); | 66 DeviceUnregisterResponseDelegate* response_delegate); |
| 66 virtual void ProcessPolicyRequest( | 67 virtual void ProcessPolicyRequest( |
| 67 const std::string& device_management_token, | 68 const std::string& device_management_token, |
| 68 const std::string& device_id, | 69 const std::string& device_id, |
| 69 const em::DevicePolicyRequest& request, | 70 const em::DevicePolicyRequest& request, |
| 70 DevicePolicyResponseDelegate* response_delegate); | 71 DevicePolicyResponseDelegate* response_delegate); // deprecated |
|
Mattias Nissler (ping if slow)
2011/02/02 12:27:55
dito
Jakob Kummerow
2011/02/03 14:36:52
Done.
| |
| 72 virtual void ProcessCloudPolicyRequest( | |
| 73 const std::string& device_management_token, | |
| 74 const std::string& device_id, | |
| 75 const em::CloudPolicyRequest& request, | |
| 76 DevicePolicyResponseDelegate* delegate); | |
| 71 | 77 |
| 72 // Keeps track of the jobs currently in flight. | 78 // Keeps track of the jobs currently in flight. |
| 73 JobSet pending_jobs_; | 79 JobSet pending_jobs_; |
| 74 | 80 |
| 75 DeviceManagementService* service_; | 81 DeviceManagementService* service_; |
| 76 | 82 |
| 77 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); | 83 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); |
| 78 }; | 84 }; |
| 79 | 85 |
| 80 } // namespace policy | 86 } // namespace policy |
| 81 | 87 |
| 82 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ | 88 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ |
| OLD | NEW |