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

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; 27 class ConsumerEnrollmentHandler;
bartfab (slow) 2014/12/15 16:08:40 Nit: Why are you adding this?
rkc 2014/12/15 20:45:58 Merge screwup. Fixed. Done.
28 class ConsumerManagementService; 28 class ConsumerManagementService;
29 class DeviceCloudPolicyInitializer; 29 class DeviceCloudPolicyInitializer;
30 class DeviceCloudPolicyInvalidator; 30 class DeviceCloudPolicyInvalidator;
31 class DeviceLocalAccountPolicyService; 31 class DeviceLocalAccountPolicyService;
32 class DeviceManagementService; 32 class DeviceManagementService;
33 class EnterpriseInstallAttributes; 33 class EnterpriseInstallAttributes;
34 class NetworkConfigurationUpdater; 34 class NetworkConfigurationUpdater;
35 class ProxyPolicyProvider; 35 class ProxyPolicyProvider;
36 class ServerBackedStateKeysBroker; 36 class ServerBackedStateKeysBroker;
37 37
(...skipping 28 matching lines...) Expand all
66 // Returns the device mode. For ChromeOS this function will return the mode 66 // Returns the device mode. For ChromeOS this function will return the mode
67 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been 67 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been
68 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. 68 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet.
69 // For other OSes the function will always return DEVICE_MODE_CONSUMER. 69 // For other OSes the function will always return DEVICE_MODE_CONSUMER.
70 DeviceMode GetDeviceMode(); 70 DeviceMode GetDeviceMode();
71 71
72 // Works out the user affiliation by checking the given |user_name| against 72 // Works out the user affiliation by checking the given |user_name| against
73 // the installation attributes. 73 // the installation attributes.
74 UserAffiliation GetUserAffiliation(const std::string& user_name); 74 UserAffiliation GetUserAffiliation(const std::string& user_name);
75 75
76 AppPackUpdater* GetAppPackUpdater();
77
78 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { 76 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
79 return device_cloud_policy_manager_; 77 return device_cloud_policy_manager_;
80 } 78 }
81 79
82 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() { 80 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() {
83 return device_cloud_policy_initializer_.get(); 81 return device_cloud_policy_initializer_.get();
84 } 82 }
85 83
86 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { 84 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() {
87 return device_local_account_policy_service_.get(); 85 return device_local_account_policy_service_.get();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; 149 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_;
152 150
153 // This policy provider is used on Chrome OS to feed user policy into the 151 // This policy provider is used on Chrome OS to feed user policy into the
154 // global PolicyService instance. This works by installing the cloud policy 152 // global PolicyService instance. This works by installing the cloud policy
155 // provider of the primary profile as the delegate of the ProxyPolicyProvider, 153 // provider of the primary profile as the delegate of the ProxyPolicyProvider,
156 // after login. 154 // after login.
157 // The provider is owned by the base class; this field is just a typed weak 155 // The provider is owned by the base class; this field is just a typed weak
158 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). 156 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate().
159 ProxyPolicyProvider* global_user_cloud_policy_provider_; 157 ProxyPolicyProvider* global_user_cloud_policy_provider_;
160 158
161 scoped_ptr<AppPackUpdater> app_pack_updater_;
162 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 159 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
163 160
164 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 161 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
165 162
166 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 163 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
167 }; 164 };
168 165
169 } // namespace policy 166 } // namespace policy
170 167
171 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 168 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698