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

Side by Side Diff: sync/tools/null_invalidation_state_tracker.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 6 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
« no previous file with comments | « sync/tools/invalidation_helper.h ('k') | sync/tools/null_invalidation_state_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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 #ifndef SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_ 5 #ifndef SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_
6 #define SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_ 6 #define SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/invalidation/invalidation_state_tracker.h" 10 #include "components/invalidation/impl/invalidation_state_tracker.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 class NullInvalidationStateTracker 14 class NullInvalidationStateTracker
15 : public base::SupportsWeakPtr<NullInvalidationStateTracker>, 15 : public base::SupportsWeakPtr<NullInvalidationStateTracker>,
16 public InvalidationStateTracker { 16 public InvalidationStateTracker {
17 public: 17 public:
18 NullInvalidationStateTracker(); 18 NullInvalidationStateTracker();
19 ~NullInvalidationStateTracker() override; 19 ~NullInvalidationStateTracker() override;
20 20
21 void ClearAndSetNewClientId(const std::string& data) override; 21 void ClearAndSetNewClientId(const std::string& data) override;
22 std::string GetInvalidatorClientId() const override; 22 std::string GetInvalidatorClientId() const override;
23 23
24 std::string GetBootstrapData() const override; 24 std::string GetBootstrapData() const override;
25 void SetBootstrapData(const std::string& data) override; 25 void SetBootstrapData(const std::string& data) override;
26 26
27 void SetSavedInvalidations(const UnackedInvalidationsMap& states) override; 27 void SetSavedInvalidations(const UnackedInvalidationsMap& states) override;
28 UnackedInvalidationsMap GetSavedInvalidations() const override; 28 UnackedInvalidationsMap GetSavedInvalidations() const override;
29 29
30 void Clear() override; 30 void Clear() override;
31 }; 31 };
32 32
33 } // namespace syncer 33 } // namespace syncer
34 34
35 #endif // SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_ 35 #endif // SYNC_TOOLS_NULL_INVALIDATION_STATE_TRACKER_H_
OLDNEW
« no previous file with comments | « sync/tools/invalidation_helper.h ('k') | sync/tools/null_invalidation_state_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698