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

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

Issue 303993005: Add browser test for ChromeResourceDispatcherHostDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free of ResourceDispatcherHostDelegate in test. Created 6 years, 6 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/policy/core/common/cloud/cloud_policy_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 POLICY_EXPORT extern const char kChromeExtensionPolicyType[]; 45 POLICY_EXPORT extern const char kChromeExtensionPolicyType[];
46 46
47 // These codes are sent in the |error_code| field of PolicyFetchResponse. 47 // These codes are sent in the |error_code| field of PolicyFetchResponse.
48 enum PolicyFetchStatus { 48 enum PolicyFetchStatus {
49 POLICY_FETCH_SUCCESS = 200, 49 POLICY_FETCH_SUCCESS = 200,
50 POLICY_FETCH_ERROR_NOT_FOUND = 902, 50 POLICY_FETCH_ERROR_NOT_FOUND = 902,
51 }; 51 };
52 52
53 } // namespace dm_protocol 53 } // namespace dm_protocol
54 54
55 // The header used to transmit the policy ID for this client.
56 POLICY_EXPORT extern const char kChromePolicyHeader[];
57
55 // Information about the verification key used to verify that policy signing 58 // Information about the verification key used to verify that policy signing
56 // keys are valid. 59 // keys are valid.
57 POLICY_EXPORT std::string GetPolicyVerificationKey(); 60 POLICY_EXPORT std::string GetPolicyVerificationKey();
58 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; 61 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[];
59 62
60 // Describes the affiliation of a user w.r.t. the device owner. 63 // Describes the affiliation of a user w.r.t. the device owner.
61 enum UserAffiliation { 64 enum UserAffiliation {
62 // User is on the same domain the device was registered with. 65 // User is on the same domain the device was registered with.
63 USER_AFFILIATION_MANAGED, 66 USER_AFFILIATION_MANAGED,
64 // No affiliation between device and user. 67 // No affiliation between device and user.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 123
121 // 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
122 // default user policy type on Android and iOS for testing purposes. 125 // default user policy type on Android and iOS for testing purposes.
123 // TODO(joaodasilva): remove this once the server is ready. 126 // TODO(joaodasilva): remove this once the server is ready.
124 // http://crbug.com/248527 127 // http://crbug.com/248527
125 POLICY_EXPORT const char* GetChromeUserPolicyType(); 128 POLICY_EXPORT const char* GetChromeUserPolicyType();
126 129
127 } // namespace policy 130 } // namespace policy
128 131
129 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 132 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/policy/core/common/cloud/cloud_policy_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698