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

Unified Diff: sync/tools/sync_client.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/null_invalidation_state_tracker.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index c2dc657e1d7ae4939bef35e68785102c18194955..d973093a49de4c9153418013f27d85dc017d98e2 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -7,7 +7,6 @@
#include <string>
#include "base/at_exit.h"
-#include "base/base64.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/debug/stack_trace.h"
@@ -44,6 +43,7 @@
#include "sync/notifier/invalidator.h"
#include "sync/notifier/invalidator_factory.h"
#include "sync/test/fake_encryptor.h"
+#include "sync/tools/null_invalidation_state_tracker.h"
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
@@ -65,41 +65,6 @@ const char kXmppAllowInsecureConnectionSwitch[] =
"xmpp-allow-insecure-connection";
const char kNotificationMethodSwitch[] = "notification-method";
-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 {
- VLOG(1) << "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) {
- VLOG(1) << "Forgetting invalidation 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));
- VLOG(1) << "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/null_invalidation_state_tracker.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698