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

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

Issue 116273002: Added support for signed policy blobs on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for ios. Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
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> 9 #include <utility>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 POLICY_EXPORT extern const char kChromeExtensionPolicyType[]; 44 POLICY_EXPORT extern const char kChromeExtensionPolicyType[];
45 45
46 // These codes are sent in the |error_code| field of PolicyFetchResponse. 46 // These codes are sent in the |error_code| field of PolicyFetchResponse.
47 enum PolicyFetchStatus { 47 enum PolicyFetchStatus {
48 POLICY_FETCH_SUCCESS = 200, 48 POLICY_FETCH_SUCCESS = 200,
49 POLICY_FETCH_ERROR_NOT_FOUND = 902, 49 POLICY_FETCH_ERROR_NOT_FOUND = 902,
50 }; 50 };
51 51
52 } // namespace dm_protocol 52 } // namespace dm_protocol
53 53
54 // Information about the verification key used to verify that policy signing
55 // keys are valid.
56 POLICY_EXPORT std::string GetPolicyVerificationKey();
57 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[];
58
54 // Describes the affiliation of a user w.r.t. the device owner. 59 // Describes the affiliation of a user w.r.t. the device owner.
55 enum UserAffiliation { 60 enum UserAffiliation {
56 // User is on the same domain the device was registered with. 61 // User is on the same domain the device was registered with.
57 USER_AFFILIATION_MANAGED, 62 USER_AFFILIATION_MANAGED,
58 // No affiliation between device and user. 63 // No affiliation between device and user.
59 USER_AFFILIATION_NONE, 64 USER_AFFILIATION_NONE,
60 }; 65 };
61 66
62 // Status codes for communication errors with the device management service. 67 // Status codes for communication errors with the device management service.
63 enum DeviceManagementStatus { 68 enum DeviceManagementStatus {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 115
111 // Returns the Chrome user policy type to use. This allows overridding the 116 // Returns the Chrome user policy type to use. This allows overridding the
112 // default user policy type on Android and iOS for testing purposes. 117 // default user policy type on Android and iOS for testing purposes.
113 // TODO(joaodasilva): remove this once the server is ready. 118 // TODO(joaodasilva): remove this once the server is ready.
114 // http://crbug.com/248527 119 // http://crbug.com/248527
115 POLICY_EXPORT const char* GetChromeUserPolicyType(); 120 POLICY_EXPORT const char* GetChromeUserPolicyType();
116 121
117 } // namespace policy 122 } // namespace policy
118 123
119 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 124 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698