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

Unified Diff: chrome/browser/policy/cloud_policy_constants.cc

Issue 8952027: base::Callback-ify policy::DeviceManagementService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 months 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/cloud_policy_constants.cc
diff --git a/chrome/browser/policy/cloud_policy_constants.cc b/chrome/browser/policy/cloud_policy_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dff97d04aed210b092c9fa7d37ed85fe8506e159
--- /dev/null
+++ b/chrome/browser/policy/cloud_policy_constants.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
Joao da Silva 2012/01/02 16:14:43 2012
Mattias Nissler (ping if slow) 2012/01/02 17:53:23 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/policy/cloud_policy_constants.h"
+
+namespace policy {
+
+// Constants related to the device management protocol.
+namespace dm_protocol {
+
+// Name constants for URL query parameters.
+const char kParamAgent[] = "agent";
+const char kParamAppType[] = "apptype";
+const char kParamDeviceID[] = "deviceid";
+const char kParamDeviceType[] = "devicetype";
+const char kParamOAuthToken[] = "oauth_token";
+const char kParamPlatform[] = "platform";
+const char kParamRequest[] = "request";
+const char kParamUserAffiliation[] = "user_affiliation";
+
+// String constants for the device and app type we report to the server.
+const char kValueAppType[] = "Chrome";
+const char kValueDeviceType[] = "2";
+const char kValueRequestAutoEnrollment[] = "enterprise_check";
+const char kValueRequestPolicy[] = "policy";
+const char kValueRequestRegister[] = "register";
+const char kValueRequestUnregister[] = "unregister";
+const char kValueUserAffiliationManaged[] = "managed";
+const char kValueUserAffiliationNone[] = "none";
+
+const char kChromeDevicePolicyType[] = "google/chromeos/device";
+const char kChromeUserPolicyType[] = "google/chromeos/user";
+
+} // namespace dm_protocol
+
+} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698