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

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

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (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
« no previous file with comments | « sync/notifier/fake_invalidation_handler.h ('k') | sync/notifier/fake_invalidator.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),
11 last_source_(LOCAL_INVALIDATION), 11 last_source_(LOCAL_INVALIDATION),
12 invalidation_count_(0) {} 12 invalidation_count_(0) {}
13 13
14 FakeInvalidationHandler::~FakeInvalidationHandler() {} 14 FakeInvalidationHandler::~FakeInvalidationHandler() {}
15 15
16 InvalidatorState FakeInvalidationHandler::GetInvalidatorState() const { 16 InvalidatorState FakeInvalidationHandler::GetInvalidatorState() const {
17 return state_; 17 return state_;
18 } 18 }
19 19
20 const ObjectIdStateMap& 20 const ObjectIdInvalidationMap&
21 FakeInvalidationHandler::GetLastInvalidationIdStateMap() const { 21 FakeInvalidationHandler::GetLastInvalidationMap() const {
22 return last_id_state_map_; 22 return last_invalidation_map_;
23 } 23 }
24 24
25 IncomingInvalidationSource 25 IncomingInvalidationSource
26 FakeInvalidationHandler::GetLastInvalidationSource() const { 26 FakeInvalidationHandler::GetLastInvalidationSource() const {
27 return last_source_; 27 return last_source_;
28 } 28 }
29 29
30 int FakeInvalidationHandler::GetInvalidationCount() const { 30 int FakeInvalidationHandler::GetInvalidationCount() const {
31 return invalidation_count_; 31 return invalidation_count_;
32 } 32 }
33 33
34 void FakeInvalidationHandler::OnInvalidatorStateChange(InvalidatorState state) { 34 void FakeInvalidationHandler::OnInvalidatorStateChange(InvalidatorState state) {
35 state_ = state; 35 state_ = state;
36 } 36 }
37 37
38 void FakeInvalidationHandler::OnIncomingInvalidation( 38 void FakeInvalidationHandler::OnIncomingInvalidation(
39 const ObjectIdStateMap& id_state_map, 39 const ObjectIdInvalidationMap& invalidation_map,
40 IncomingInvalidationSource source) { 40 IncomingInvalidationSource source) {
41 last_id_state_map_ = id_state_map; 41 last_invalidation_map_ = invalidation_map;
42 last_source_ = source; 42 last_source_ = source;
43 ++invalidation_count_; 43 ++invalidation_count_;
44 } 44 }
45 45
46 } // namespace syncer 46 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/fake_invalidation_handler.h ('k') | sync/notifier/fake_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698