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

Side by Side Diff: sync/tools/sync_client.cc

Issue 11229015: Add the InvalidationState struct to bundle local state about invalidations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cstddef> 5 #include <cstddef>
6 #include <cstdio> 6 #include <cstdio>
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "xmpp-allow-insecure-connection"; 65 "xmpp-allow-insecure-connection";
66 const char kNotificationMethodSwitch[] = "notification-method"; 66 const char kNotificationMethodSwitch[] = "notification-method";
67 67
68 class NullInvalidationStateTracker 68 class NullInvalidationStateTracker
69 : public base::SupportsWeakPtr<NullInvalidationStateTracker>, 69 : public base::SupportsWeakPtr<NullInvalidationStateTracker>,
70 public InvalidationStateTracker { 70 public InvalidationStateTracker {
71 public: 71 public:
72 NullInvalidationStateTracker() {} 72 NullInvalidationStateTracker() {}
73 virtual ~NullInvalidationStateTracker() {} 73 virtual ~NullInvalidationStateTracker() {}
74 74
75 virtual InvalidationVersionMap GetAllMaxVersions() const OVERRIDE { 75 virtual InvalidationStateMap GetAllInvalidationStates() const OVERRIDE {
76 return InvalidationVersionMap(); 76 return InvalidationStateMap();
77 } 77 }
78 78
79 virtual void SetMaxVersion( 79 virtual void SetMaxVersion(
80 const invalidation::ObjectId& id, 80 const invalidation::ObjectId& id,
81 int64 max_invalidation_version) OVERRIDE { 81 int64 max_invalidation_version) OVERRIDE {
82 VLOG(1) << "Setting max invalidation version for " 82 VLOG(1) << "Setting max invalidation version for "
83 << ObjectIdToString(id) << " to " << max_invalidation_version; 83 << ObjectIdToString(id) << " to " << max_invalidation_version;
84 } 84 }
85 85
86 virtual void Forget(const ObjectIdSet& ids) OVERRIDE { 86 virtual void Forget(const ObjectIdSet& ids) OVERRIDE {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 io_thread.Stop(); 393 io_thread.Stop();
394 return 0; 394 return 0;
395 } 395 }
396 396
397 } // namespace 397 } // namespace
398 } // namespace syncer 398 } // namespace syncer
399 399
400 int main(int argc, char* argv[]) { 400 int main(int argc, char* argv[]) {
401 return syncer::SyncClientMain(argc, argv); 401 return syncer::SyncClientMain(argc, argv);
402 } 402 }
OLDNEW
« no previous file with comments | « sync/notifier/sync_invalidation_listener_unittest.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698