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

Side by Side Diff: components/invalidation/invalidation_state_tracker.h

Issue 400073003: Finish decoupling sync and invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GN Created 6 years, 5 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 // An InvalidationStateTracker is an interface that handles persisting state 5 // An InvalidationStateTracker is an interface that handles persisting state
6 // needed for invalidations. Currently, it is responsible for managing the 6 // needed for invalidations. Currently, it is responsible for managing the
7 // following information: 7 // following information:
8 // - Max version seen from the invalidation server to help dedupe invalidations. 8 // - Max version seen from the invalidation server to help dedupe invalidations.
9 // - Bootstrap data for the invalidation client. 9 // - Bootstrap data for the invalidation client.
10 // - Payloads and locally generated ack handles, to support local acking. 10 // - Payloads and locally generated ack handles, to support local acking.
11 11
12 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_ 12 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_
13 #define COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_ 13 #define COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_
14 14
15 #include <map> 15 #include <map>
16 #include <string> 16 #include <string>
17 17
18 #include "base/basictypes.h" 18 #include "base/basictypes.h"
19 #include "base/callback_forward.h" 19 #include "base/callback_forward.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "components/invalidation/invalidation.h"
21 #include "components/invalidation/invalidation_export.h" 22 #include "components/invalidation/invalidation_export.h"
23 #include "components/invalidation/invalidation_util.h"
22 #include "components/invalidation/unacked_invalidation_set.h" 24 #include "components/invalidation/unacked_invalidation_set.h"
23 #include "google/cacheinvalidation/include/types.h" 25 #include "google/cacheinvalidation/include/types.h"
24 #include "sync/internal_api/public/base/invalidation.h"
25 #include "sync/internal_api/public/base/invalidation_util.h"
26 26
27 namespace base { 27 namespace base {
28 class TaskRunner; 28 class TaskRunner;
29 } // namespace base 29 } // namespace base
30 30
31 namespace syncer { 31 namespace syncer {
32 32
33 class INVALIDATION_EXPORT InvalidationStateTracker { 33 class INVALIDATION_EXPORT InvalidationStateTracker {
34 public: 34 public:
35 InvalidationStateTracker(); 35 InvalidationStateTracker();
(...skipping 19 matching lines...) Expand all
55 virtual void SetSavedInvalidations(const UnackedInvalidationsMap& states) = 0; 55 virtual void SetSavedInvalidations(const UnackedInvalidationsMap& states) = 0;
56 virtual UnackedInvalidationsMap GetSavedInvalidations() const = 0; 56 virtual UnackedInvalidationsMap GetSavedInvalidations() const = 0;
57 57
58 // Erases invalidation versions, client ID, and state stored on disk. 58 // Erases invalidation versions, client ID, and state stored on disk.
59 virtual void Clear() = 0; 59 virtual void Clear() = 0;
60 }; 60 };
61 61
62 } // namespace syncer 62 } // namespace syncer
63 63
64 #endif // COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_ 64 #endif // COMPONENTS_INVALIDATION_INVALIDATION_STATE_TRACKER_H_
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_service_test_template.h ('k') | components/invalidation/invalidation_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698