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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.h

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass values in ctors Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility>
10 9
11 #include "components/policy/policy_export.h" 10 #include "components/policy/policy_export.h"
12 11
13 namespace policy { 12 namespace policy {
14 13
15 // Constants related to the device management protocol. 14 // Constants related to the device management protocol.
16 namespace dm_protocol { 15 namespace dm_protocol {
17 16
18 // Name extern constants for URL query parameters. 17 // Name extern constants for URL query parameters.
19 POLICY_EXPORT extern const char kParamAgent[]; 18 POLICY_EXPORT extern const char kParamAgent[];
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer 114 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer
116 // device. 115 // device.
117 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise 116 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise
118 // device. 117 // device.
119 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device. 118 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device.
120 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as 119 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as
121 // consumer kiosk with ability to auto 120 // consumer kiosk with ability to auto
122 // launch a kiosk webapp. 121 // launch a kiosk webapp.
123 }; 122 };
124 123
125 // A pair that combines a policy fetch type and entity ID.
126 typedef std::pair<std::string, std::string> PolicyNamespaceKey;
127
128 // Returns the Chrome user policy type to use. This allows overridding the 124 // Returns the Chrome user policy type to use. This allows overridding the
129 // default user policy type on Android and iOS for testing purposes. 125 // default user policy type on Android and iOS for testing purposes.
130 // TODO(joaodasilva): remove this once the server is ready. 126 // TODO(joaodasilva): remove this once the server is ready.
131 // http://crbug.com/248527 127 // http://crbug.com/248527
132 POLICY_EXPORT const char* GetChromeUserPolicyType(); 128 POLICY_EXPORT const char* GetChromeUserPolicyType();
133 129
134 } // namespace policy 130 } // namespace policy
135 131
136 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 132 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698