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

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: review feedback 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Convenience accessors to core() components. 48 // Convenience accessors to core() components.
49 CloudPolicyClient* client() { return core_.client(); } 49 CloudPolicyClient* client() { return core_.client(); }
50 const CloudPolicyClient* client() const { return core_.client(); } 50 const CloudPolicyClient* client() const { return core_.client(); }
51 CloudPolicyStore* store() { return core_.store(); } 51 CloudPolicyStore* store() { return core_.store(); }
52 const CloudPolicyStore* store() const { return core_.store(); } 52 const CloudPolicyStore* store() const { return core_.store(); }
53 CloudPolicyService* service() { return core_.service(); } 53 CloudPolicyService* service() { return core_.service(); }
54 const CloudPolicyService* service() const { return core_.service(); } 54 const CloudPolicyService* service() const { return core_.service(); }
55 55
56 private: 56 private:
57 // Completion handler for policy refresh operations. 57 // Completion handler for policy refresh operations.
58 void OnRefreshComplete(); 58 void OnRefreshComplete(bool success);
59 59
60 CloudPolicyCore core_; 60 CloudPolicyCore core_;
61 61
62 // Whether there's a policy refresh operation pending, in which case all 62 // Whether there's a policy refresh operation pending, in which case all
63 // policy update notifications are deferred until after it completes. 63 // policy update notifications are deferred until after it completes.
64 bool waiting_for_policy_refresh_; 64 bool waiting_for_policy_refresh_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 66 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
67 }; 67 };
68 68
69 } // namespace policy 69 } // namespace policy
70 70
71 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_ 71 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698