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

Unified Diff: sync/notifier/dropped_invalidation_tracker.cc

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/notifier/dropped_invalidation_tracker.h ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/dropped_invalidation_tracker.cc
diff --git a/sync/notifier/dropped_invalidation_tracker.cc b/sync/notifier/dropped_invalidation_tracker.cc
deleted file mode 100644
index fc576e8fde6833b1e3ef05f6ffcc80d4de8f0e43..0000000000000000000000000000000000000000
--- a/sync/notifier/dropped_invalidation_tracker.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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.
-
-#include "sync/notifier/dropped_invalidation_tracker.h"
-
-#include "sync/internal_api/public/base/invalidation.h"
-
-namespace syncer {
-
-DroppedInvalidationTracker::DroppedInvalidationTracker(
- const invalidation::ObjectId& id)
- : id_(id),
- drop_ack_handle_(AckHandle::InvalidAckHandle()),
- recovering_from_drop_(false) {}
-
-DroppedInvalidationTracker::~DroppedInvalidationTracker() {}
-
-const invalidation::ObjectId& DroppedInvalidationTracker::object_id() const {
- return id_;
-}
-
-void DroppedInvalidationTracker::RecordDropEvent(
- WeakHandle<AckHandler> handler, AckHandle handle) {
- drop_ack_handler_ = handler;
- drop_ack_handle_ = handle;
- recovering_from_drop_ = true;
-}
-
-void DroppedInvalidationTracker::RecordRecoveryFromDropEvent() {
- if (drop_ack_handler_.IsInitialized()) {
- drop_ack_handler_.Call(FROM_HERE,
- &AckHandler::Acknowledge,
- id_,
- drop_ack_handle_);
- }
- drop_ack_handler_ = syncer::WeakHandle<AckHandler>();
- recovering_from_drop_ = false;
-}
-
-bool DroppedInvalidationTracker::IsRecoveringFromDropEvent() const {
- return recovering_from_drop_;
-}
-
-} // namespace syncer
« no previous file with comments | « sync/notifier/dropped_invalidation_tracker.h ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698