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

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

Issue 2440473004: Add policy domain for signin screen apps (Closed)
Patch Set: Fix compilation Created 4 years, 2 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_CLOUD_POLICY_MANAGER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 class SequencedTaskRunner; 23 class SequencedTaskRunner;
24 } 24 }
25 25
26 namespace net { 26 namespace net {
27 class URLRequestContextGetter; 27 class URLRequestContextGetter;
28 } 28 }
29 29
30 namespace policy { 30 namespace policy {
31 31
32 class PolicyMap; 32 class PolicyMap;
33 class SchemaRegistry;
Andrew T Wilson (Slow) 2016/10/21 13:56:30 Why is this added? We aren't using it?
emaxx 2016/10/21 14:33:10 Thanks, good catch. This line leaked from the seco
33 34
34 // CloudPolicyManager is the main switching central between cloud policy and the 35 // CloudPolicyManager is the main switching central between cloud policy and the
35 // upper layers of the policy stack. It wires up a CloudPolicyCore to the 36 // upper layers of the policy stack. It wires up a CloudPolicyCore to the
36 // ConfigurationPolicyProvider interface. 37 // ConfigurationPolicyProvider interface.
37 // 38 //
38 // This class contains the base functionality, there are subclasses that add 39 // This class contains the base functionality, there are subclasses that add
39 // functionality specific to user-level and device-level cloud policy, such as 40 // functionality specific to user-level and device-level cloud policy, such as
40 // blocking on initial user policy fetch or device enrollment. 41 // blocking on initial user policy fetch or device enrollment.
41 class POLICY_EXPORT CloudPolicyManager 42 class POLICY_EXPORT CloudPolicyManager
42 : public ConfigurationPolicyProvider, 43 : public ConfigurationPolicyProvider,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Check whether fully initialized and if so, publish policy by calling 78 // Check whether fully initialized and if so, publish policy by calling
78 // ConfigurationPolicyStore::UpdatePolicy(). 79 // ConfigurationPolicyStore::UpdatePolicy().
79 void CheckAndPublishPolicy(); 80 void CheckAndPublishPolicy();
80 81
81 // Writes Chrome policy into |policy_map|. This is intended to be overridden 82 // Writes Chrome policy into |policy_map|. This is intended to be overridden
82 // by subclasses that want to post-process policy before publishing it. The 83 // by subclasses that want to post-process policy before publishing it. The
83 // default implementation just copies over |store()->policy_map()|. 84 // default implementation just copies over |store()->policy_map()|.
84 virtual void GetChromePolicy(PolicyMap* policy_map); 85 virtual void GetChromePolicy(PolicyMap* policy_map);
85 86
86 void CreateComponentCloudPolicyService( 87 void CreateComponentCloudPolicyService(
88 const std::string& policy_type,
87 const base::FilePath& policy_cache_path, 89 const base::FilePath& policy_cache_path,
88 const scoped_refptr<net::URLRequestContextGetter>& request_context, 90 const scoped_refptr<net::URLRequestContextGetter>& request_context,
89 CloudPolicyClient* client); 91 CloudPolicyClient* client);
90 92
91 void ClearAndDestroyComponentCloudPolicyService(); 93 void ClearAndDestroyComponentCloudPolicyService();
92 94
93 // Convenience accessors to core() components. 95 // Convenience accessors to core() components.
94 CloudPolicyClient* client() { return core_.client(); } 96 CloudPolicyClient* client() { return core_.client(); }
95 const CloudPolicyClient* client() const { return core_.client(); } 97 const CloudPolicyClient* client() const { return core_.client(); }
96 CloudPolicyStore* store() { return core_.store(); } 98 CloudPolicyStore* store() { return core_.store(); }
(...skipping 17 matching lines...) Expand all
114 116
115 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 117 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
116 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 118 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
117 119
118 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 120 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
119 }; 121 };
120 122
121 } // namespace policy 123 } // namespace policy
122 124
123 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ 125 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698