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

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

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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
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_POLICY_BUILDER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "components/policy/proto/cloud_policy.pb.h"
18 #include "components/policy/proto/device_management_backend.pb.h"
17 #include "crypto/rsa_private_key.h" 19 #include "crypto/rsa_private_key.h"
18 #include "policy/proto/cloud_policy.pb.h"
19 #include "policy/proto/device_management_backend.pb.h"
20 20
21 #if !defined(OS_ANDROID) && !defined(OS_IOS) 21 #if !defined(OS_ANDROID) && !defined(OS_IOS)
22 #include "policy/proto/chrome_extension_policy.pb.h" 22 #include "components/policy/proto/chrome_extension_policy.pb.h"
23 #endif 23 #endif
24 24
25 namespace policy { 25 namespace policy {
26 26
27 // A helper class for testing that provides a straightforward interface for 27 // A helper class for testing that provides a straightforward interface for
28 // constructing policy blobs for use in testing. NB: This uses fake data and 28 // constructing policy blobs for use in testing. NB: This uses fake data and
29 // hard-coded signing keys by default, so should not be used in production code. 29 // hard-coded signing keys by default, so should not be used in production code.
30 class PolicyBuilder { 30 class PolicyBuilder {
31 public: 31 public:
32 // Constants used as dummy data for filling the PolicyData protobuf. 32 // Constants used as dummy data for filling the PolicyData protobuf.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 UserPolicyBuilder; 154 UserPolicyBuilder;
155 155
156 #if !defined(OS_ANDROID) && !defined(OS_IOS) 156 #if !defined(OS_ANDROID) && !defined(OS_IOS)
157 typedef TypedPolicyBuilder<enterprise_management::ExternalPolicyData> 157 typedef TypedPolicyBuilder<enterprise_management::ExternalPolicyData>
158 ComponentPolicyBuilder; 158 ComponentPolicyBuilder;
159 #endif 159 #endif
160 160
161 } // namespace policy 161 } // namespace policy
162 162
163 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_ 163 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698