| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |