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

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

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 | 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_VALIDATOR_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
19 #include "components/policy/policy_export.h" 18 #include "components/policy/policy_export.h"
20 #include "policy/proto/cloud_policy.pb.h" 19 #include "policy/proto/cloud_policy.pb.h"
21 20
21 #if !defined(OS_ANDROID)
22 #include "policy/proto/chrome_extension_policy.pb.h"
23 #endif
24
22 namespace base { 25 namespace base {
23 class MessageLoopProxy; 26 class MessageLoopProxy;
24 } 27 }
25 28
26 namespace google { 29 namespace google {
27 namespace protobuf { 30 namespace protobuf {
28 class MessageLite; 31 class MessageLite;
29 } 32 }
30 } 33 }
31 34
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 background_task_runner), 292 background_task_runner),
290 payload_(payload.Pass()) {} 293 payload_(payload.Pass()) {}
291 294
292 scoped_ptr<PayloadProto> payload_; 295 scoped_ptr<PayloadProto> payload_;
293 296
294 DISALLOW_COPY_AND_ASSIGN(CloudPolicyValidator); 297 DISALLOW_COPY_AND_ASSIGN(CloudPolicyValidator);
295 }; 298 };
296 299
297 typedef CloudPolicyValidator<enterprise_management::CloudPolicySettings> 300 typedef CloudPolicyValidator<enterprise_management::CloudPolicySettings>
298 UserCloudPolicyValidator; 301 UserCloudPolicyValidator;
302
303 #if !defined(OS_ANDROID)
299 typedef CloudPolicyValidator<enterprise_management::ExternalPolicyData> 304 typedef CloudPolicyValidator<enterprise_management::ExternalPolicyData>
300 ComponentCloudPolicyValidator; 305 ComponentCloudPolicyValidator;
306 #endif
301 307
302 } // namespace policy 308 } // namespace policy
303 309
304 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_ 310 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698