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

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

Issue 8586030: Added ConfigurationPolicyProvider::RefreshPolicies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simpler AsyncLoader, fixed unit_tests, added connector::RefreshPolicies Created 9 years, 1 month 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_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Locks the device to an enterprise domain. 79 // Locks the device to an enterprise domain.
80 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); 80 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user);
81 81
82 // Returns the enterprise domain if device is managed. 82 // Returns the enterprise domain if device is managed.
83 std::string GetEnterpriseDomain(); 83 std::string GetEnterpriseDomain();
84 84
85 // Reset the device policy machinery. This stops any automatic retry behavior 85 // Reset the device policy machinery. This stops any automatic retry behavior
86 // and clears the error flags, so potential retries have a chance to succeed. 86 // and clears the error flags, so potential retries have a chance to succeed.
87 void ResetDevicePolicy(); 87 void ResetDevicePolicy();
88 88
89 // Initiates a policy fetch after a successful device registration. 89 // Initiates device and user policy fetches, if possible. Pending fetches
90 void FetchDevicePolicy(); 90 // will be cancelled.
91 void FetchCloudPolicy();
91 92
92 // Initiates a user policy fetch after a successful device registration. This 93 // Refreshes policies on each existing provider.
93 // is only safe to call when a user device token is available. 94 void RefreshPolicies();
94 void FetchUserPolicy();
95 95
96 // Schedules initialization of the cloud policy backend services, if the 96 // Schedules initialization of the cloud policy backend services, if the
97 // services are already constructed. 97 // services are already constructed.
98 void ScheduleServiceInitialization(int64 delay_milliseconds); 98 void ScheduleServiceInitialization(int64 delay_milliseconds);
99 99
100 // Initializes the user cloud policy infrastructure. 100 // Initializes the user cloud policy infrastructure.
101 // If |wait_for_policy_fetch| is true, the user policy will only become fully 101 // If |wait_for_policy_fetch| is true, the user policy will only become fully
102 // initialized after a policy fetch is attempted. Note that Profile creation 102 // initialized after a policy fetch is attempted. Note that Profile creation
103 // is blocked until this initialization is complete. 103 // is blocked until this initialization is complete.
104 void InitializeUserPolicy(const std::string& user_name, 104 void InitializeUserPolicy(const std::string& user_name,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 // Used to convert policies to preferences. 185 // Used to convert policies to preferences.
186 ConfigurationPolicyHandlerList handler_list_; 186 ConfigurationPolicyHandlerList handler_list_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 188 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
189 }; 189 };
190 190
191 } // namespace policy 191 } // namespace policy
192 192
193 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 193 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698