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

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

Issue 828953004: Add AffiliatedInvalidationServiceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test accessors; made unit test no longer be a friend Created 5 years, 11 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 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 AffiliatedInvalidationServiceProvider;
27 class ConsumerManagementService; 28 class ConsumerManagementService;
28 class DeviceCloudPolicyInitializer; 29 class DeviceCloudPolicyInitializer;
29 class DeviceCloudPolicyInvalidator; 30 class DeviceCloudPolicyInvalidator;
30 class DeviceLocalAccountPolicyService; 31 class DeviceLocalAccountPolicyService;
31 class DeviceManagementService; 32 class DeviceManagementService;
32 struct EnrollmentConfig; 33 struct EnrollmentConfig;
33 class EnterpriseInstallAttributes; 34 class EnterpriseInstallAttributes;
34 class NetworkConfigurationUpdater; 35 class NetworkConfigurationUpdater;
35 class ProxyPolicyProvider; 36 class ProxyPolicyProvider;
36 class ServerBackedStateKeysBroker; 37 class ServerBackedStateKeysBroker;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // DeviceCloudPolicyManagerChromeOS::Observer: 139 // DeviceCloudPolicyManagerChromeOS::Observer:
139 void OnDeviceCloudPolicyManagerConnected() override; 140 void OnDeviceCloudPolicyManagerConnected() override;
140 141
141 private: 142 private:
142 // Set the timezone as soon as the policies are available. 143 // Set the timezone as soon as the policies are available.
143 void SetTimezoneIfPolicyAvailable(); 144 void SetTimezoneIfPolicyAvailable();
144 145
145 // Components of the device cloud policy implementation. 146 // Components of the device cloud policy implementation.
146 scoped_ptr<ServerBackedStateKeysBroker> state_keys_broker_; 147 scoped_ptr<ServerBackedStateKeysBroker> state_keys_broker_;
147 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; 148 scoped_ptr<EnterpriseInstallAttributes> install_attributes_;
149 scoped_ptr<AffiliatedInvalidationServiceProvider>
150 affiliated_invalidation_service_provider_;
Mattias Nissler (ping if slow) 2015/01/13 09:50:16 This is not really something that belongs to polic
bartfab (slow) 2015/01/13 17:45:23 I can move it to the platform part but I cannot th
148 scoped_ptr<ConsumerManagementService> consumer_management_service_; 151 scoped_ptr<ConsumerManagementService> consumer_management_service_;
149 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; 152 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_;
150 scoped_ptr<DeviceManagementService> consumer_device_management_service_; 153 scoped_ptr<DeviceManagementService> consumer_device_management_service_;
151 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; 154 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_;
152 scoped_ptr<DeviceLocalAccountPolicyService> 155 scoped_ptr<DeviceLocalAccountPolicyService>
153 device_local_account_policy_service_; 156 device_local_account_policy_service_;
154 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; 157 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_;
155 158
156 // This policy provider is used on Chrome OS to feed user policy into the 159 // This policy provider is used on Chrome OS to feed user policy into the
157 // global PolicyService instance. This works by installing the cloud policy 160 // global PolicyService instance. This works by installing the cloud policy
158 // provider of the primary profile as the delegate of the ProxyPolicyProvider, 161 // provider of the primary profile as the delegate of the ProxyPolicyProvider,
159 // after login. 162 // after login.
160 // The provider is owned by the base class; this field is just a typed weak 163 // The provider is owned by the base class; this field is just a typed weak
161 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). 164 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate().
162 ProxyPolicyProvider* global_user_cloud_policy_provider_; 165 ProxyPolicyProvider* global_user_cloud_policy_provider_;
163 166
164 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 167 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
165 168
166 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 169 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
167 170
168 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 171 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
169 }; 172 };
170 173
171 } // namespace policy 174 } // namespace policy
172 175
173 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 176 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698