OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
12 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
14 | 15 |
15 namespace invalidation { | 16 namespace invalidation { |
16 class InvalidationService; | 17 class InvalidationService; |
17 class TiclInvalidationService; | 18 class TiclInvalidationService; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 scoped_ptr<InvalidationServiceObserver> device_invalidation_service_observer_; | 82 scoped_ptr<InvalidationServiceObserver> device_invalidation_service_observer_; |
82 | 83 |
83 // State observers for logged-in users' invalidation services. | 84 // State observers for logged-in users' invalidation services. |
84 ScopedVector<InvalidationServiceObserver> | 85 ScopedVector<InvalidationServiceObserver> |
85 profile_invalidation_service_observers_; | 86 profile_invalidation_service_observers_; |
86 | 87 |
87 // The invalidation service backing the current |CloudPolicyInvalidator|. NULL | 88 // The invalidation service backing the current |CloudPolicyInvalidator|. NULL |
88 // if no |CloudPolicyInvalidator| exists. | 89 // if no |CloudPolicyInvalidator| exists. |
89 invalidation::InvalidationService* invalidation_service_; | 90 invalidation::InvalidationService* invalidation_service_; |
90 | 91 |
| 92 // The highest invalidation version that was handled already. |
| 93 int64 highest_handled_invalidation_version_; |
| 94 |
91 // The current |CloudPolicyInvalidator|. NULL if no connected invalidation | 95 // The current |CloudPolicyInvalidator|. NULL if no connected invalidation |
92 // service is available. | 96 // service is available. |
93 scoped_ptr<CloudPolicyInvalidator> invalidator_; | 97 scoped_ptr<CloudPolicyInvalidator> invalidator_; |
94 | 98 |
95 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInvalidator); | 99 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInvalidator); |
96 }; | 100 }; |
97 | 101 |
98 } // namespace policy | 102 } // namespace policy |
99 | 103 |
100 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |
OLD | NEW |