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

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

Issue 10824140: Add InvalidationStateTracker::Forget() to erase an entry from storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_client target Created 8 years, 3 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
« no previous file with comments | « sync/notifier/registration_manager_unittest.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return InvalidationVersionMap(); 76 return InvalidationVersionMap();
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 {
87 for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) {
88 VLOG(1) << "Forgetting invalidation state for " << ObjectIdToString(*it);
89 }
90 }
91
86 virtual std::string GetInvalidationState() const OVERRIDE { 92 virtual std::string GetInvalidationState() const OVERRIDE {
87 return std::string(); 93 return std::string();
88 } 94 }
89 95
90 virtual void SetInvalidationState(const std::string& state) OVERRIDE { 96 virtual void SetInvalidationState(const std::string& state) OVERRIDE {
91 std::string base64_state; 97 std::string base64_state;
92 CHECK(base::Base64Encode(state, &base64_state)); 98 CHECK(base::Base64Encode(state, &base64_state));
93 VLOG(1) << "Setting invalidation state to: " << base64_state; 99 VLOG(1) << "Setting invalidation state to: " << base64_state;
94 } 100 }
95 }; 101 };
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 io_thread.Stop(); 393 io_thread.Stop();
388 return 0; 394 return 0;
389 } 395 }
390 396
391 } // namespace 397 } // namespace
392 } // namespace syncer 398 } // namespace syncer
393 399
394 int main(int argc, char* argv[]) { 400 int main(int argc, char* argv[]) {
395 return syncer::SyncClientMain(argc, argv); 401 return syncer::SyncClientMain(argc, argv);
396 } 402 }
OLDNEW
« no previous file with comments | « sync/notifier/registration_manager_unittest.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698