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

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

Issue 1094493003: Initial RemoteCommandsInvalidator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fixes addressing #7 and #8 Created 5 years, 7 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 AffiliatedCloudPolicyInvalidator;
27 class AffiliatedInvalidationServiceProvider; 28 class AffiliatedInvalidationServiceProvider;
29 class AffiliatedRemoteCommandsInvalidator;
28 class ConsumerManagementService; 30 class ConsumerManagementService;
29 class DeviceCloudPolicyInitializer; 31 class DeviceCloudPolicyInitializer;
30 class AffiliatedCloudPolicyInvalidator;
31 class DeviceLocalAccountPolicyService; 32 class DeviceLocalAccountPolicyService;
32 class DeviceManagementService; 33 class DeviceManagementService;
33 struct EnrollmentConfig; 34 struct EnrollmentConfig;
34 class EnterpriseInstallAttributes; 35 class EnterpriseInstallAttributes;
35 class NetworkConfigurationUpdater; 36 class NetworkConfigurationUpdater;
36 class ProxyPolicyProvider; 37 class ProxyPolicyProvider;
37 class ServerBackedStateKeysBroker; 38 class ServerBackedStateKeysBroker;
38 39
39 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS. 40 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS.
40 class BrowserPolicyConnectorChromeOS 41 class BrowserPolicyConnectorChromeOS
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 scoped_ptr<AffiliatedInvalidationServiceProvider> 158 scoped_ptr<AffiliatedInvalidationServiceProvider>
158 affiliated_invalidation_service_provider_; 159 affiliated_invalidation_service_provider_;
159 scoped_ptr<ConsumerManagementService> consumer_management_service_; 160 scoped_ptr<ConsumerManagementService> consumer_management_service_;
160 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; 161 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_;
161 PrefService* local_state_; 162 PrefService* local_state_;
162 scoped_ptr<DeviceManagementService> consumer_device_management_service_; 163 scoped_ptr<DeviceManagementService> consumer_device_management_service_;
163 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; 164 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_;
164 scoped_ptr<DeviceLocalAccountPolicyService> 165 scoped_ptr<DeviceLocalAccountPolicyService>
165 device_local_account_policy_service_; 166 device_local_account_policy_service_;
166 scoped_ptr<AffiliatedCloudPolicyInvalidator> device_cloud_policy_invalidator_; 167 scoped_ptr<AffiliatedCloudPolicyInvalidator> device_cloud_policy_invalidator_;
168 scoped_ptr<AffiliatedRemoteCommandsInvalidator>
169 device_remote_commands_invalidator_;
167 170
168 // This policy provider is used on Chrome OS to feed user policy into the 171 // This policy provider is used on Chrome OS to feed user policy into the
169 // global PolicyService instance. This works by installing the cloud policy 172 // global PolicyService instance. This works by installing the cloud policy
170 // provider of the primary profile as the delegate of the ProxyPolicyProvider, 173 // provider of the primary profile as the delegate of the ProxyPolicyProvider,
171 // after login. 174 // after login.
172 // The provider is owned by the base class; this field is just a typed weak 175 // The provider is owned by the base class; this field is just a typed weak
173 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). 176 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate().
174 ProxyPolicyProvider* global_user_cloud_policy_provider_; 177 ProxyPolicyProvider* global_user_cloud_policy_provider_;
175 178
176 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 179 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
177 180
178 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 181 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
179 182
180 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 183 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
181 }; 184 };
182 185
183 } // namespace policy 186 } // namespace policy
184 187
185 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 188 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698