summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/device_management_backend_impl.h
diff options
context:
space:
mode:
authorjkummerow@chromium.org <jkummerow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 12:20:44 +0000
committerjkummerow@chromium.org <jkummerow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 12:20:44 +0000
commit883c13cadc196ae66f1b5c866b4d693662c82486 (patch)
tree11f83e80d57f49a19dc0d9a65eac8f669e5fd8e3 /chrome/browser/policy/device_management_backend_impl.h
parent310cd962fb636f9a6beb2282ff4c87cacfd6af27 (diff)
downloadchromium_src-883c13cadc196ae66f1b5c866b4d693662c82486.zip
chromium_src-883c13cadc196ae66f1b5c866b4d693662c82486.tar.gz
chromium_src-883c13cadc196ae66f1b5c866b4d693662c82486.tar.bz2
New policy protobuf protocol.
(Second attempt to land http://codereview.chromium.org/6409040/) - cloud_policy.proto autogenerated from policy_templats.json - C++ method decoding the protobuf also autogenerated from policy_templates.json - changed policy fetching mechanism to fetch new-style policy protobufs BUG=68309, chromium-os:11253, chromium-os:11255 TEST=CloudPolicyCacheTest.*; also manual test against python testserver Review URL: http://codereview.chromium.org/6523058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/device_management_backend_impl.h')
-rw-r--r--chrome/browser/policy/device_management_backend_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/policy/device_management_backend_impl.h b/chrome/browser/policy/device_management_backend_impl.h
index d818b4d..40c7e11 100644
--- a/chrome/browser/policy/device_management_backend_impl.h
+++ b/chrome/browser/policy/device_management_backend_impl.h
@@ -36,7 +36,10 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend {
// String constants for the device and app type we report to the server.
static const char kValueRequestRegister[];
static const char kValueRequestUnregister[];
+ // Deprecated in favor of kValueRequestCloudPolicy.
+ // See DevicePolicyResponseDelegate::HandlePolicyResponse.
static const char kValueRequestPolicy[];
+ static const char kValueRequestCloudPolicy[];
static const char kValueDeviceType[];
static const char kValueAppType[];
@@ -63,11 +66,18 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend {
const std::string& device_id,
const em::DeviceUnregisterRequest& request,
DeviceUnregisterResponseDelegate* response_delegate);
+ // Deprecated in favor of ProcessCloudPolicyRequest.
+ // See DevicePolicyResponseDelegate::HandlePolicyResponse.
virtual void ProcessPolicyRequest(
const std::string& device_management_token,
const std::string& device_id,
const em::DevicePolicyRequest& request,
DevicePolicyResponseDelegate* response_delegate);
+ virtual void ProcessCloudPolicyRequest(
+ const std::string& device_management_token,
+ const std::string& device_id,
+ const em::CloudPolicyRequest& request,
+ DevicePolicyResponseDelegate* delegate);
// Keeps track of the jobs currently in flight.
JobSet pending_jobs_;