OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CLOUD_POLICY_INVALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Whether the invalidator currently has the ability to receive invalidations. | 65 // Whether the invalidator currently has the ability to receive invalidations. |
66 bool invalidations_enabled() { | 66 bool invalidations_enabled() { |
67 return invalidations_enabled_; | 67 return invalidations_enabled_; |
68 } | 68 } |
69 | 69 |
70 // syncer::InvalidationHandler: | 70 // syncer::InvalidationHandler: |
71 virtual void OnInvalidatorStateChange( | 71 virtual void OnInvalidatorStateChange( |
72 syncer::InvalidatorState state) OVERRIDE; | 72 syncer::InvalidatorState state) OVERRIDE; |
73 virtual void OnIncomingInvalidation( | 73 virtual void OnIncomingInvalidation( |
74 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 74 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 75 virtual std::string GetOwnerName() const OVERRIDE; |
75 | 76 |
76 // CloudPolicyCore::Observer: | 77 // CloudPolicyCore::Observer: |
77 virtual void OnCoreConnected(CloudPolicyCore* core) OVERRIDE; | 78 virtual void OnCoreConnected(CloudPolicyCore* core) OVERRIDE; |
78 virtual void OnRefreshSchedulerStarted(CloudPolicyCore* core) OVERRIDE; | 79 virtual void OnRefreshSchedulerStarted(CloudPolicyCore* core) OVERRIDE; |
79 virtual void OnCoreDisconnecting(CloudPolicyCore* core) OVERRIDE; | 80 virtual void OnCoreDisconnecting(CloudPolicyCore* core) OVERRIDE; |
80 | 81 |
81 // CloudPolicyStore::Observer: | 82 // CloudPolicyStore::Observer: |
82 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 83 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; |
83 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; | 84 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; |
84 | 85 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // A thread checker to make sure that callbacks are invoked on the correct | 186 // A thread checker to make sure that callbacks are invoked on the correct |
186 // thread. | 187 // thread. |
187 base::ThreadChecker thread_checker_; | 188 base::ThreadChecker thread_checker_; |
188 | 189 |
189 DISALLOW_COPY_AND_ASSIGN(CloudPolicyInvalidator); | 190 DISALLOW_COPY_AND_ASSIGN(CloudPolicyInvalidator); |
190 }; | 191 }; |
191 | 192 |
192 } // namespace policy | 193 } // namespace policy |
193 | 194 |
194 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ | 195 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ |
OLD | NEW |