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

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: 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Returns true if this device is managed by an enterprise (as opposed to 75 // Returns true if this device is managed by an enterprise (as opposed to
76 // a local owner). 76 // a local owner).
77 bool IsEnterpriseManaged(); 77 bool IsEnterpriseManaged();
78 78
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 // Resets the cloud 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 ResetCloudPolicy();
Mattias Nissler (ping if slow) 2011/11/18 11:00:25 As mentioned in the other comment, the enrollment
Joao da Silva 2011/11/18 14:03:30 Done.
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 91 void FetchCloudPolicy();
92 // Initiates a user policy fetch after a successful device registration. This
93 // is only safe to call when a user device token is available.
94 void FetchUserPolicy();
95 92
96 // Schedules initialization of the cloud policy backend services, if the 93 // Schedules initialization of the cloud policy backend services, if the
97 // services are already constructed. 94 // services are already constructed.
98 void ScheduleServiceInitialization(int64 delay_milliseconds); 95 void ScheduleServiceInitialization(int64 delay_milliseconds);
99 96
100 // Initializes the user cloud policy infrastructure. 97 // Initializes the user cloud policy infrastructure.
101 // If |wait_for_policy_fetch| is true, the user policy will only become fully 98 // 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 99 // initialized after a policy fetch is attempted. Note that Profile creation
103 // is blocked until this initialization is complete. 100 // is blocked until this initialization is complete.
104 void InitializeUserPolicy(const std::string& user_name, 101 void InitializeUserPolicy(const std::string& user_name,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 181
185 // Used to convert policies to preferences. 182 // Used to convert policies to preferences.
186 ConfigurationPolicyHandlerList handler_list_; 183 ConfigurationPolicyHandlerList handler_list_;
187 184
188 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 185 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
189 }; 186 };
190 187
191 } // namespace policy 188 } // namespace policy
192 189
193 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 190 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698