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

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

Issue 11444029: Added UserPolicySigninService::FetchPolicyForSignedInUser(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // stay valid until ShutdownService() gets called. 68 // stay valid until ShutdownService() gets called.
69 void StartRefreshScheduler(PrefService* local_state, 69 void StartRefreshScheduler(PrefService* local_state,
70 const std::string& refresh_rate_pref); 70 const std::string& refresh_rate_pref);
71 71
72 // Check whether fully initialized and if so, publish policy by calling 72 // Check whether fully initialized and if so, publish policy by calling
73 // ConfigurationPolicyStore::UpdatePolicy(). 73 // ConfigurationPolicyStore::UpdatePolicy().
74 void CheckAndPublishPolicy(); 74 void CheckAndPublishPolicy();
75 75
76 private: 76 private:
77 // Completion handler for policy refresh operations. 77 // Completion handler for policy refresh operations.
78 void OnRefreshComplete(); 78 void OnRefreshComplete(bool success);
79 79
80 // Updates the refresh scheduler on refresh delay changes. 80 // Updates the refresh scheduler on refresh delay changes.
81 void UpdateRefreshDelay(); 81 void UpdateRefreshDelay();
82 82
83 CloudPolicyStore* store_; 83 CloudPolicyStore* store_;
84 scoped_ptr<CloudPolicyClient> client_; 84 scoped_ptr<CloudPolicyClient> client_;
85 scoped_ptr<CloudPolicyService> service_; 85 scoped_ptr<CloudPolicyService> service_;
86 scoped_ptr<CloudPolicyRefreshScheduler> refresh_scheduler_; 86 scoped_ptr<CloudPolicyRefreshScheduler> refresh_scheduler_;
87 87
88 // Whether there's a policy refresh operation pending, in which case all 88 // Whether there's a policy refresh operation pending, in which case all
89 // policy update notifications are deferred until after it completes. 89 // policy update notifications are deferred until after it completes.
90 bool waiting_for_policy_refresh_; 90 bool waiting_for_policy_refresh_;
91 91
92 // Keeps track of the refresh delay pref. 92 // Keeps track of the refresh delay pref.
93 scoped_ptr<IntegerPrefMember> refresh_delay_; 93 scoped_ptr<IntegerPrefMember> refresh_delay_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 95 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
96 }; 96 };
97 97
98 } // namespace policy 98 } // namespace policy
99 99
100 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_ 100 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698