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

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

Issue 1306183007: Switch to id-based affiliation determination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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 9
10 #include "components/policy/policy_export.h" 10 #include "components/policy/policy_export.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } // namespace dm_protocol 58 } // namespace dm_protocol
59 59
60 // The header used to transmit the policy ID for this client. 60 // The header used to transmit the policy ID for this client.
61 POLICY_EXPORT extern const char kChromePolicyHeader[]; 61 POLICY_EXPORT extern const char kChromePolicyHeader[];
62 62
63 // Information about the verification key used to verify that policy signing 63 // Information about the verification key used to verify that policy signing
64 // keys are valid. 64 // keys are valid.
65 POLICY_EXPORT std::string GetPolicyVerificationKey(); 65 POLICY_EXPORT std::string GetPolicyVerificationKey();
66 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; 66 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[];
67 67
68 // TODO(peletskyi): Remove this enum after affiliation code is moved
69 // to components/user_manager.
70 // Describes the affiliation of a user w.r.t. the device owner.
71 enum UserAffiliation {
72 // User is on the same domain the device was registered with.
73 USER_AFFILIATION_MANAGED,
74 // No affiliation between device and user.
75 USER_AFFILIATION_NONE,
76 };
77
78 // Status codes for communication errors with the device management service. 68 // Status codes for communication errors with the device management service.
79 // This enum is used to define the buckets for an enumerated UMA histogram. 69 // This enum is used to define the buckets for an enumerated UMA histogram.
80 // Hence, 70 // Hence,
81 // (a) existing enumerated constants should never be deleted or reordered, and 71 // (a) existing enumerated constants should never be deleted or reordered, and
82 // (b) new constants should only be appended at the end of the enumeration. 72 // (b) new constants should only be appended at the end of the enumeration.
83 enum DeviceManagementStatus { 73 enum DeviceManagementStatus {
84 // All is good. 74 // All is good.
85 DM_STATUS_SUCCESS = 0, 75 DM_STATUS_SUCCESS = 0,
86 // Request payload invalid. 76 // Request payload invalid.
87 DM_STATUS_REQUEST_INVALID = 1, 77 DM_STATUS_REQUEST_INVALID = 1,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 142
153 // Returns the management mode of |policy_data|. You should use this function 143 // Returns the management mode of |policy_data|. You should use this function
154 // instead of using |management_mode| in |policy_data| to handle legacy 144 // instead of using |management_mode| in |policy_data| to handle legacy
155 // |policy_data| that doesn't have |management_mode| set. 145 // |policy_data| that doesn't have |management_mode| set.
156 POLICY_EXPORT ManagementMode GetManagementMode( 146 POLICY_EXPORT ManagementMode GetManagementMode(
157 const enterprise_management::PolicyData& policy_data); 147 const enterprise_management::PolicyData& policy_data);
158 148
159 } // namespace policy 149 } // namespace policy
160 150
161 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 151 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW
« chrome/browser/chromeos/policy/affiliation_test_helper.h ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698