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

Side by Side Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" 14 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
15 #include "chrome/browser/policy/chrome_browser_policy_connector.h" 15 #include "chrome/browser/policy/chrome_browser_policy_connector.h"
16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
17 17
18 class PrefRegistrySimple; 18 class PrefRegistrySimple;
19 class PrefService; 19 class PrefService;
20 20
21 namespace net { 21 namespace net {
22 class URLRequestContextGetter; 22 class URLRequestContextGetter;
23 } 23 }
24 24
25 namespace policy { 25 namespace policy {
26 26
27 class AppPackUpdater;
28 class ConsumerManagementService; 27 class ConsumerManagementService;
29 class DeviceCloudPolicyInitializer; 28 class DeviceCloudPolicyInitializer;
30 class DeviceCloudPolicyInvalidator; 29 class DeviceCloudPolicyInvalidator;
31 class DeviceLocalAccountPolicyService; 30 class DeviceLocalAccountPolicyService;
32 class DeviceManagementService; 31 class DeviceManagementService;
33 struct EnrollmentConfig; 32 struct EnrollmentConfig;
34 class EnterpriseInstallAttributes; 33 class EnterpriseInstallAttributes;
35 class NetworkConfigurationUpdater; 34 class NetworkConfigurationUpdater;
36 class ProxyPolicyProvider; 35 class ProxyPolicyProvider;
37 class ServerBackedStateKeysBroker; 36 class ServerBackedStateKeysBroker;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 71
73 // Get the enrollment configuration for the device as decided by various 72 // Get the enrollment configuration for the device as decided by various
74 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() 73 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig()
75 // for details. 74 // for details.
76 EnrollmentConfig GetPrescribedEnrollmentConfig() const; 75 EnrollmentConfig GetPrescribedEnrollmentConfig() const;
77 76
78 // Works out the user affiliation by checking the given |user_name| against 77 // Works out the user affiliation by checking the given |user_name| against
79 // the installation attributes. 78 // the installation attributes.
80 UserAffiliation GetUserAffiliation(const std::string& user_name); 79 UserAffiliation GetUserAffiliation(const std::string& user_name);
81 80
82 AppPackUpdater* GetAppPackUpdater();
83
84 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { 81 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
85 return device_cloud_policy_manager_; 82 return device_cloud_policy_manager_;
86 } 83 }
87 84
88 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() { 85 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() {
89 return device_cloud_policy_initializer_.get(); 86 return device_cloud_policy_initializer_.get();
90 } 87 }
91 88
92 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { 89 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() {
93 return device_local_account_policy_service_.get(); 90 return device_local_account_policy_service_.get();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; 154 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_;
158 155
159 // This policy provider is used on Chrome OS to feed user policy into the 156 // This policy provider is used on Chrome OS to feed user policy into the
160 // global PolicyService instance. This works by installing the cloud policy 157 // global PolicyService instance. This works by installing the cloud policy
161 // provider of the primary profile as the delegate of the ProxyPolicyProvider, 158 // provider of the primary profile as the delegate of the ProxyPolicyProvider,
162 // after login. 159 // after login.
163 // The provider is owned by the base class; this field is just a typed weak 160 // The provider is owned by the base class; this field is just a typed weak
164 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). 161 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate().
165 ProxyPolicyProvider* global_user_cloud_policy_provider_; 162 ProxyPolicyProvider* global_user_cloud_policy_provider_;
166 163
167 scoped_ptr<AppPackUpdater> app_pack_updater_;
168 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 164 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
169 165
170 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 166 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
171 167
172 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 168 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
173 }; 169 };
174 170
175 } // namespace policy 171 } // namespace policy
176 172
177 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 173 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698