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

Side by Side Diff: sync/notifier/fake_invalidator.cc

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 7 years, 1 month 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 "sync/notifier/fake_invalidator.h" 5 #include "sync/notifier/fake_invalidator.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 FakeInvalidator::FakeInvalidator() {} 9 FakeInvalidator::FakeInvalidator() {}
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void FakeInvalidator::UpdateRegisteredIds(InvalidationHandler* handler, 43 void FakeInvalidator::UpdateRegisteredIds(InvalidationHandler* handler,
44 const ObjectIdSet& ids) { 44 const ObjectIdSet& ids) {
45 registrar_.UpdateRegisteredIds(handler, ids); 45 registrar_.UpdateRegisteredIds(handler, ids);
46 } 46 }
47 47
48 void FakeInvalidator::UnregisterHandler(InvalidationHandler* handler) { 48 void FakeInvalidator::UnregisterHandler(InvalidationHandler* handler) {
49 registrar_.UnregisterHandler(handler); 49 registrar_.UnregisterHandler(handler);
50 } 50 }
51 51
52 void FakeInvalidator::Acknowledge(const invalidation::ObjectId& id,
53 const AckHandle& ack_handle) {
54 // Do nothing.
55 }
56
57 InvalidatorState FakeInvalidator::GetInvalidatorState() const { 52 InvalidatorState FakeInvalidator::GetInvalidatorState() const {
58 return registrar_.GetInvalidatorState(); 53 return registrar_.GetInvalidatorState();
59 } 54 }
60 55
61 void FakeInvalidator::UpdateCredentials( 56 void FakeInvalidator::UpdateCredentials(
62 const std::string& email, const std::string& token) { 57 const std::string& email, const std::string& token) {
63 email_ = email; 58 email_ = email;
64 token_ = token; 59 token_ = token;
65 } 60 }
66 61
67 } // namespace syncer 62 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698