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

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

Issue 17911005: Merge 208347 "Revert 208315 "Make use of InvalidationService"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 years, 5 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/invalidation_notifier.h ('k') | sync/notifier/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/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/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 base::Bind(&invalidation::CreateInvalidationClient), 72 base::Bind(&invalidation::CreateInvalidationClient),
73 invalidator_client_id_, client_info_, invalidation_bootstrap_data_, 73 invalidator_client_id_, client_info_, invalidation_bootstrap_data_,
74 initial_invalidation_state_map_, 74 initial_invalidation_state_map_,
75 invalidation_state_tracker_, 75 invalidation_state_tracker_,
76 this); 76 this);
77 state_ = STARTED; 77 state_ = STARTED;
78 } 78 }
79 invalidation_listener_.UpdateCredentials(email, token); 79 invalidation_listener_.UpdateCredentials(email, token);
80 } 80 }
81 81
82 void InvalidationNotifier::SendInvalidation(
83 const ObjectIdInvalidationMap& invalidation_map) {
84 DCHECK(CalledOnValidThread());
85 // Do nothing.
86 }
87
82 void InvalidationNotifier::OnInvalidate( 88 void InvalidationNotifier::OnInvalidate(
83 const ObjectIdInvalidationMap& invalidation_map) { 89 const ObjectIdInvalidationMap& invalidation_map) {
84 DCHECK(CalledOnValidThread()); 90 DCHECK(CalledOnValidThread());
85 registrar_.DispatchInvalidationsToHandlers(invalidation_map); 91 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
86 } 92 }
87 93
88 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) { 94 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) {
89 DCHECK(CalledOnValidThread()); 95 DCHECK(CalledOnValidThread());
90 registrar_.UpdateInvalidatorState(state); 96 registrar_.UpdateInvalidatorState(state);
91 } 97 }
92 98
93 } // namespace syncer 99 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_notifier.h ('k') | sync/notifier/invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698