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

Unified Diff: sync/tools/sync_listen_notifications.cc

Issue 11415049: Implement features needed for local ack handling in InvalidationStateTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ...... Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/tools/sync_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_listen_notifications.cc
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index bc9008815be70466f1b20225b2ed5f74607cf215..ce901a449f3a5bddc46ad0ae3829ae5676f0d3e1 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -7,13 +7,11 @@
#include <string>
#include "base/at_exit.h"
-#include "base/base64.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
#include "base/message_loop.h"
#include "base/threading/thread.h"
#include "jingle/notifier/base/notification_method.h"
@@ -30,6 +28,7 @@
#include "sync/notifier/invalidation_util.h"
#include "sync/notifier/invalidator_factory.h"
#include "sync/notifier/invalidator.h"
+#include "sync/tools/null_invalidation_state_tracker.h"
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
@@ -78,41 +77,6 @@ class NotificationPrinter : public InvalidationHandler {
DISALLOW_COPY_AND_ASSIGN(NotificationPrinter);
};
-class NullInvalidationStateTracker
- : public base::SupportsWeakPtr<NullInvalidationStateTracker>,
- public InvalidationStateTracker {
- public:
- NullInvalidationStateTracker() {}
- virtual ~NullInvalidationStateTracker() {}
-
- virtual InvalidationStateMap GetAllInvalidationStates() const OVERRIDE {
- return InvalidationStateMap();
- }
-
- virtual void SetMaxVersion(
- const invalidation::ObjectId& id,
- int64 max_invalidation_version) OVERRIDE {
- LOG(INFO) << "Setting max invalidation version for "
- << ObjectIdToString(id) << " to " << max_invalidation_version;
- }
-
- virtual void Forget(const ObjectIdSet& ids) OVERRIDE {
- for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) {
- LOG(INFO) << "Forgetting saved state for " << ObjectIdToString(*it);
- }
- }
-
- virtual std::string GetBootstrapData() const OVERRIDE {
- return std::string();
- }
-
- virtual void SetBootstrapData(const std::string& data) OVERRIDE {
- std::string base64_data;
- CHECK(base::Base64Encode(data, &base64_data));
- LOG(INFO) << "Setting bootstrap data to: " << base64_data;
- }
-};
-
// Needed to use a real host resolver.
class MyTestURLRequestContext : public net::TestURLRequestContext {
public:
« no previous file with comments | « sync/tools/sync_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698