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

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

Issue 12114012: Remove syncer::IncomingInvalidationSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update DriveSystemService Created 7 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 | 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/invalidation_notifier.h" 5 #include "sync/notifier/invalidation_notifier.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void InvalidationNotifier::SendInvalidation( 81 void InvalidationNotifier::SendInvalidation(
82 const ObjectIdInvalidationMap& invalidation_map) { 82 const ObjectIdInvalidationMap& invalidation_map) {
83 DCHECK(CalledOnValidThread()); 83 DCHECK(CalledOnValidThread());
84 // Do nothing. 84 // Do nothing.
85 } 85 }
86 86
87 void InvalidationNotifier::OnInvalidate( 87 void InvalidationNotifier::OnInvalidate(
88 const ObjectIdInvalidationMap& invalidation_map) { 88 const ObjectIdInvalidationMap& invalidation_map) {
89 DCHECK(CalledOnValidThread()); 89 DCHECK(CalledOnValidThread());
90 registrar_.DispatchInvalidationsToHandlers(invalidation_map, 90 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
91 REMOTE_INVALIDATION);
92 } 91 }
93 92
94 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) { 93 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) {
95 DCHECK(CalledOnValidThread()); 94 DCHECK(CalledOnValidThread());
96 registrar_.UpdateInvalidatorState(state); 95 registrar_.UpdateInvalidatorState(state);
97 } 96 }
98 97
99 } // namespace syncer 98 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698