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

Side by Side Diff: components/invalidation/impl/fake_invalidation_state_tracker.h

Issue 1472083005: Remove kint64min. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint5
Patch Set: rebase Created 5 years 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
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 COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_ 5 #ifndef COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_
6 #define COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_ 6 #define COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_
7 7
8 #include <stdint.h>
9
8 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
9 #include "components/invalidation/impl/invalidation_state_tracker.h" 11 #include "components/invalidation/impl/invalidation_state_tracker.h"
10 12
11 namespace syncer { 13 namespace syncer {
12 14
13 // InvalidationStateTracker implementation that simply keeps track of 15 // InvalidationStateTracker implementation that simply keeps track of
14 // the max versions and invalidation state in memory. 16 // the max versions and invalidation state in memory.
15 class FakeInvalidationStateTracker 17 class FakeInvalidationStateTracker
16 : public InvalidationStateTracker, 18 : public InvalidationStateTracker,
17 public base::SupportsWeakPtr<FakeInvalidationStateTracker> { 19 public base::SupportsWeakPtr<FakeInvalidationStateTracker> {
18 public: 20 public:
19 FakeInvalidationStateTracker(); 21 FakeInvalidationStateTracker();
20 ~FakeInvalidationStateTracker() override; 22 ~FakeInvalidationStateTracker() override;
21 23
22 // InvalidationStateTracker implementation. 24 // InvalidationStateTracker implementation.
23 void ClearAndSetNewClientId(const std::string& client_id) override; 25 void ClearAndSetNewClientId(const std::string& client_id) override;
24 std::string GetInvalidatorClientId() const override; 26 std::string GetInvalidatorClientId() const override;
25 void SetBootstrapData(const std::string& data) override; 27 void SetBootstrapData(const std::string& data) override;
26 std::string GetBootstrapData() const override; 28 std::string GetBootstrapData() const override;
27 void SetSavedInvalidations(const UnackedInvalidationsMap& states) override; 29 void SetSavedInvalidations(const UnackedInvalidationsMap& states) override;
28 UnackedInvalidationsMap GetSavedInvalidations() const override; 30 UnackedInvalidationsMap GetSavedInvalidations() const override;
29 void Clear() override; 31 void Clear() override;
30 32
31 static const int64 kMinVersion; 33 static const int64_t kMinVersion;
32 34
33 private: 35 private:
34 std::string invalidator_client_id_; 36 std::string invalidator_client_id_;
35 std::string bootstrap_data_; 37 std::string bootstrap_data_;
36 UnackedInvalidationsMap unacked_invalidations_map_; 38 UnackedInvalidationsMap unacked_invalidations_map_;
37 }; 39 };
38 40
39 } // namespace syncer 41 } // namespace syncer
40 42
41 #endif // COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_ 43 #endif // COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_STATE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698