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

Unified Diff: components/invalidation/fake_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 side-by-side diff with in-line comments
Download patch
Index: components/invalidation/fake_invalidation_state_tracker.h
diff --git a/components/invalidation/fake_invalidation_state_tracker.h b/components/invalidation/fake_invalidation_state_tracker.h
deleted file mode 100644
index 1388badc10f5e82a65d57e5f680f121a731a5b62..0000000000000000000000000000000000000000
--- a/components/invalidation/fake_invalidation_state_tracker.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_INVALIDATION_FAKE_INVALIDATION_STATE_TRACKER_H_
-#define COMPONENTS_INVALIDATION_FAKE_INVALIDATION_STATE_TRACKER_H_
-
-#include "base/memory/weak_ptr.h"
-#include "components/invalidation/invalidation_state_tracker.h"
-
-namespace syncer {
-
-// InvalidationStateTracker implementation that simply keeps track of
-// the max versions and invalidation state in memory.
-class FakeInvalidationStateTracker
- : public InvalidationStateTracker,
- public base::SupportsWeakPtr<FakeInvalidationStateTracker> {
- public:
- FakeInvalidationStateTracker();
- ~FakeInvalidationStateTracker() override;
-
- // InvalidationStateTracker implementation.
- void ClearAndSetNewClientId(const std::string& client_id) override;
- std::string GetInvalidatorClientId() const override;
- void SetBootstrapData(const std::string& data) override;
- std::string GetBootstrapData() const override;
- void SetSavedInvalidations(const UnackedInvalidationsMap& states) override;
- UnackedInvalidationsMap GetSavedInvalidations() const override;
- void Clear() override;
-
- static const int64 kMinVersion;
-
- private:
- std::string invalidator_client_id_;
- std::string bootstrap_data_;
- UnackedInvalidationsMap unacked_invalidations_map_;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATION_STATE_TRACKER_H_
« no previous file with comments | « components/invalidation/fake_invalidation_handler.cc ('k') | components/invalidation/fake_invalidation_state_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698