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

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

Issue 159773006: [invalidations] Added table with registered objectsIds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_invalidations_clean
Patch Set: Change constness of iterators for android clang Created 6 years, 10 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
« no previous file with comments | « sync/notifier/fake_invalidation_handler.h ('k') | sync/notifier/invalidation_handler.h » ('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 "sync/notifier/fake_invalidation_handler.h" 5 #include "sync/notifier/fake_invalidation_handler.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 FakeInvalidationHandler::FakeInvalidationHandler() 9 FakeInvalidationHandler::FakeInvalidationHandler()
10 : state_(DEFAULT_INVALIDATION_ERROR), 10 : state_(DEFAULT_INVALIDATION_ERROR),
(...skipping 17 matching lines...) Expand all
28 void FakeInvalidationHandler::OnInvalidatorStateChange(InvalidatorState state) { 28 void FakeInvalidationHandler::OnInvalidatorStateChange(InvalidatorState state) {
29 state_ = state; 29 state_ = state;
30 } 30 }
31 31
32 void FakeInvalidationHandler::OnIncomingInvalidation( 32 void FakeInvalidationHandler::OnIncomingInvalidation(
33 const ObjectIdInvalidationMap& invalidation_map) { 33 const ObjectIdInvalidationMap& invalidation_map) {
34 last_invalidation_map_ = invalidation_map; 34 last_invalidation_map_ = invalidation_map;
35 ++invalidation_count_; 35 ++invalidation_count_;
36 } 36 }
37 37
38 std::string FakeInvalidationHandler::GetOwnerName() const { return "Fake"; }
39
38 } // namespace syncer 40 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/fake_invalidation_handler.h ('k') | sync/notifier/invalidation_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698