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

Side by Side Diff: chrome/browser/sync/notifier/invalidation_version_tracker.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 (c) 2011 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 // An InvalidationVersionTracker is an interface that handles getting 5 // An InvalidationVersionTracker is an interface that handles getting
6 // and setting (persisting) max invalidation versions. 6 // and setting (persisting) max invalidation versions.
7 7
8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_ 8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_
9 #define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_ 9 #define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_
10 10
11 #include <map> 11 #include <map>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "chrome/browser/sync/syncable/model_type.h" 14 #include "sync/syncable/model_type.h"
15 15
16 namespace sync_notifier { 16 namespace sync_notifier {
17 17
18 typedef std::map<syncable::ModelType, int64> InvalidationVersionMap; 18 typedef std::map<syncable::ModelType, int64> InvalidationVersionMap;
19 19
20 class InvalidationVersionTracker { 20 class InvalidationVersionTracker {
21 public: 21 public:
22 InvalidationVersionTracker() {} 22 InvalidationVersionTracker() {}
23 23
24 virtual InvalidationVersionMap GetAllMaxVersions() const = 0; 24 virtual InvalidationVersionMap GetAllMaxVersions() const = 0;
25 25
26 // |max_version| should be strictly greater than any existing max 26 // |max_version| should be strictly greater than any existing max
27 // version for |model_type|. 27 // version for |model_type|.
28 virtual void SetMaxVersion(syncable::ModelType model_type, 28 virtual void SetMaxVersion(syncable::ModelType model_type,
29 int64 max_version) = 0; 29 int64 max_version) = 0;
30 30
31 protected: 31 protected:
32 virtual ~InvalidationVersionTracker() {} 32 virtual ~InvalidationVersionTracker() {}
33 }; 33 };
34 34
35 } // namespace sync_notifier 35 } // namespace sync_notifier
36 36
37 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_ 37 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_VERSION_TRACKER_H_
38 38
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/invalidation_util.h ('k') | chrome/browser/sync/notifier/non_blocking_invalidation_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698