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

Side by Side Diff: chrome/browser/policy/cloud_policy_subsystem.h

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + address comments Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
Joao da Silva 2011/06/29 11:36:17 Nit: pref_member.h not needed.
gfeher 2011/06/29 12:53:07 Done.
11 #include "chrome/browser/prefs/pref_change_registrar.h" 11 #include "chrome/browser/prefs/pref_change_registrar.h"
12 #include "content/common/notification_observer.h" 12 #include "content/common/notification_observer.h"
13 #include "net/base/network_change_notifier.h" 13 #include "net/base/network_change_notifier.h"
14 14
15 class PrefService; 15 class PrefService;
16 16
17 namespace policy { 17 namespace policy {
18 18
19 class CloudPolicyCacheBase; 19 class CloudPolicyCacheBase;
20 class CloudPolicyController; 20 class CloudPolicyController;
21 class CloudPolicyIdentityStrategy; 21 class CloudPolicyIdentityStrategy;
22 class ConfigurationPolicyProvider; 22 class ConfigurationPolicyProvider;
Joao da Silva 2011/06/29 11:36:17 Nit: ConfigurationPolicyProvider not needed.
gfeher 2011/06/29 12:53:07 Done.
23 class DeviceManagementService; 23 class DeviceManagementService;
24 class DeviceTokenFetcher; 24 class DeviceTokenFetcher;
25 class PolicyNotifier; 25 class PolicyNotifier;
26 26
27 // This class is a container for the infrastructure required to support cloud 27 // This class is a container for the infrastructure required to support cloud
28 // policy. It glues together the backend, the policy controller and manages the 28 // policy. It glues together the backend, the policy controller and manages the
29 // life cycle of the policy providers. 29 // life cycle of the policy providers.
30 class CloudPolicySubsystem 30 class CloudPolicySubsystem
31 : public NotificationObserver, 31 : public NotificationObserver,
32 public net::NetworkChangeNotifier::IPAddressObserver { 32 public net::NetworkChangeNotifier::IPAddressObserver {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void Shutdown(); 87 void Shutdown();
88 88
89 // Returns the externally visible state and corresponding error details. 89 // Returns the externally visible state and corresponding error details.
90 PolicySubsystemState state(); 90 PolicySubsystemState state();
91 ErrorDetails error_details(); 91 ErrorDetails error_details();
92 92
93 // Stops all auto-retrying error handling behavior inside the policy 93 // Stops all auto-retrying error handling behavior inside the policy
94 // subsystem. 94 // subsystem.
95 void StopAutoRetry(); 95 void StopAutoRetry();
96 96
97 ConfigurationPolicyProvider* GetManagedPolicyProvider();
98 ConfigurationPolicyProvider* GetRecommendedPolicyProvider();
99
100 // Registers cloud policy related prefs. 97 // Registers cloud policy related prefs.
101 static void RegisterPrefs(PrefService* pref_service); 98 static void RegisterPrefs(PrefService* pref_service);
102 99
103 // Schedule initialization of the policy backend service. 100 // Schedule initialization of the policy backend service.
104 void ScheduleServiceInitialization(int64 delay_milliseconds); 101 void ScheduleServiceInitialization(int64 delay_milliseconds);
105 102
106 private: 103 private:
107 friend class TestingCloudPolicySubsystem; 104 friend class TestingCloudPolicySubsystem;
108 105
109 CloudPolicySubsystem(); 106 CloudPolicySubsystem();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 142 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
146 143
147 std::string device_management_url_; 144 std::string device_management_url_;
148 145
149 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 146 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
150 }; 147 };
151 148
152 } // namespace policy 149 } // namespace policy
153 150
154 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 151 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698