| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // The object id representing the policy in the invalidation service. | 206 // The object id representing the policy in the invalidation service. |
| 207 invalidation::ObjectId object_id_; | 207 invalidation::ObjectId object_id_; |
| 208 | 208 |
| 209 // Whether the policy is current invalid. This is set to true when an | 209 // Whether the policy is current invalid. This is set to true when an |
| 210 // invalidation is received and reset when the policy fetched due to the | 210 // invalidation is received and reset when the policy fetched due to the |
| 211 // invalidation is stored. | 211 // invalidation is stored. |
| 212 bool invalid_; | 212 bool invalid_; |
| 213 | 213 |
| 214 // The version of the latest invalidation received. This is compared to | 214 // The version of the latest invalidation received. This is compared to |
| 215 // the invalidation version of policy stored to determine when the | 215 // the invalidation version of policy stored to determine when the |
| 216 // invalidated policy is up-to-date. | 216 // invalidated policy is up to date. |
| 217 int64_t invalidation_version_; | 217 int64_t invalidation_version_; |
| 218 | 218 |
| 219 // The number of invalidations with unknown version received. Since such | 219 // The number of invalidations with unknown version received. Since such |
| 220 // invalidations do not provide a version number, this count is used to set | 220 // invalidations do not provide a version number, this count is used to set |
| 221 // invalidation_version_ when such invalidations occur. | 221 // invalidation_version_ when such invalidations occur. |
| 222 int unknown_version_invalidation_count_; | 222 int unknown_version_invalidation_count_; |
| 223 | 223 |
| 224 // The highest invalidation version that was handled already. | 224 // The highest invalidation version that was handled already. |
| 225 int64_t highest_handled_invalidation_version_; | 225 int64_t highest_handled_invalidation_version_; |
| 226 | 226 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 241 | 241 |
| 242 // WeakPtrFactory used to create callbacks to this object. | 242 // WeakPtrFactory used to create callbacks to this object. |
| 243 base::WeakPtrFactory<CloudPolicyInvalidator> weak_factory_; | 243 base::WeakPtrFactory<CloudPolicyInvalidator> weak_factory_; |
| 244 | 244 |
| 245 DISALLOW_COPY_AND_ASSIGN(CloudPolicyInvalidator); | 245 DISALLOW_COPY_AND_ASSIGN(CloudPolicyInvalidator); |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 } // namespace policy | 248 } // namespace policy |
| 249 | 249 |
| 250 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ | 250 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ |
| OLD | NEW |