Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5893)

Unified Diff: chrome/browser/policy/device_management_backend_impl.h

Issue 5162006: Always send the device ID when making device management requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/device_management_backend_impl.h
diff --git a/chrome/browser/policy/device_management_backend_impl.h b/chrome/browser/policy/device_management_backend_impl.h
index aa43681ae3e4474513a84819cad7c692fbce85a2..d818b4d0c0ca8ea024a5522eba27883e69b8f373 100644
--- a/chrome/browser/policy/device_management_backend_impl.h
+++ b/chrome/browser/policy/device_management_backend_impl.h
@@ -24,6 +24,22 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend {
explicit DeviceManagementBackendImpl(DeviceManagementService* service);
virtual ~DeviceManagementBackendImpl();
+ static std::string GetAgentString();
+
+ // Name constants for URL query parameters.
+ static const char kParamRequest[];
+ static const char kParamDeviceType[];
+ static const char kParamAppType[];
+ static const char kParamDeviceID[];
+ static const char kParamAgent[];
+
+ // String constants for the device and app type we report to the server.
+ static const char kValueRequestRegister[];
+ static const char kValueRequestUnregister[];
+ static const char kValueRequestPolicy[];
+ static const char kValueDeviceType[];
+ static const char kValueAppType[];
+
private:
friend class DeviceManagementJobBase;
@@ -44,10 +60,12 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend {
DeviceRegisterResponseDelegate* response_delegate);
virtual void ProcessUnregisterRequest(
const std::string& device_management_token,
+ const std::string& device_id,
const em::DeviceUnregisterRequest& request,
DeviceUnregisterResponseDelegate* response_delegate);
virtual void ProcessPolicyRequest(
const std::string& device_management_token,
+ const std::string& device_id,
const em::DevicePolicyRequest& request,
DevicePolicyResponseDelegate* response_delegate);
« no previous file with comments | « chrome/browser/policy/device_management_backend.h ('k') | chrome/browser/policy/device_management_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698