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

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

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | 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"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void Shutdown(); 83 void Shutdown();
84 84
85 // Returns the externally visible state and corresponding error details. 85 // Returns the externally visible state and corresponding error details.
86 PolicySubsystemState state(); 86 PolicySubsystemState state();
87 ErrorDetails error_details(); 87 ErrorDetails error_details();
88 88
89 // Stops all auto-retrying error handling behavior inside the policy 89 // Stops all auto-retrying error handling behavior inside the policy
90 // subsystem. 90 // subsystem.
91 void StopAutoRetry(); 91 void StopAutoRetry();
92 92
93 ConfigurationPolicyProvider* GetManagedPolicyProvider();
94 ConfigurationPolicyProvider* GetRecommendedPolicyProvider();
95
96 // Registers cloud policy related prefs. 93 // Registers cloud policy related prefs.
97 static void RegisterPrefs(PrefService* pref_service); 94 static void RegisterPrefs(PrefService* pref_service);
98 95
99 private: 96 private:
100 // Updates the policy controller with a new refresh rate value. 97 // Updates the policy controller with a new refresh rate value.
101 void UpdatePolicyRefreshRate(); 98 void UpdatePolicyRefreshRate();
102 99
103 // Returns a weak pointer to this subsystem's PolicyNotifier. 100 // Returns a weak pointer to this subsystem's PolicyNotifier.
104 PolicyNotifier* notifier() { 101 PolicyNotifier* notifier() {
105 return notifier_.get(); 102 return notifier_.get();
(...skipping 19 matching lines...) Expand all
125 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; 122 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_;
126 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; 123 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_;
127 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 124 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
128 125
129 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 126 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
130 }; 127 };
131 128
132 } // namespace policy 129 } // namespace policy
133 130
134 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 131 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698