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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_invalidator.h

Issue 460573005: Pass highest handled invalidation version between invalidators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code and tests done. Ready for review. Created 6 years, 4 months 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698