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

Unified Diff: chrome/browser/sync/glue/dummy_invalidator.h

Issue 15580002: Make use of InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 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: chrome/browser/sync/glue/dummy_invalidator.h
diff --git a/chrome/browser/sync/glue/dummy_invalidator.h b/chrome/browser/sync/glue/dummy_invalidator.h
deleted file mode 100644
index 19c4fca73f379f065bac1aeb22a219d50b2bbd61..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/glue/dummy_invalidator.h
+++ /dev/null
@@ -1,34 +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.
-
-#ifndef CHROME_BROWSER_SYNC_GLUE_DUMMY_INVALIDATOR_H_
-#define CHROME_BROWSER_SYNC_GLUE_DUMMY_INVALIDATOR_H_
-
-#include "sync/notifier/invalidator.h"
-
-// A fake invalidator that does nothing, and stays in a "transient" error state.
-// This is useful for cases where we know that invalidations won't work, but
-// still want to keep Sync running without them
-class DummyInvalidator : public syncer::Invalidator {
- public:
- DummyInvalidator();
- virtual ~DummyInvalidator();
-
- virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
- virtual void UpdateRegisteredIds(syncer::InvalidationHandler* handler,
- const syncer::ObjectIdSet& ids) OVERRIDE;
- virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
- virtual void Acknowledge(const invalidation::ObjectId& id,
- const syncer::AckHandle& ack_handle) OVERRIDE;
- virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
- virtual void UpdateCredentials(
- const std::string& email, const std::string& token) OVERRIDE;
- virtual void SendInvalidation(
- const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DummyInvalidator);
-};
-
-#endif // CHROME_BROWSER_SYNC_GLUE_DUMMY_INVALIDATOR_H_
« no previous file with comments | « chrome/browser/sync/glue/android_invalidator_bridge_proxy.cc ('k') | chrome/browser/sync/glue/dummy_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698