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

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

Issue 16298002: Update sync/, sql/, and printing/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/internal_api/http_bridge_unittest.cc ('k') | sync/test/engine/syncer_command_test.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/non_blocking_invalidator.h" 5 #include "sync/notifier/non_blocking_invalidator.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 NonBlockingInvalidator::Core::~Core() { 70 NonBlockingInvalidator::Core::~Core() {
71 } 71 }
72 72
73 void NonBlockingInvalidator::Core::Initialize( 73 void NonBlockingInvalidator::Core::Initialize(
74 const notifier::NotifierOptions& notifier_options, 74 const notifier::NotifierOptions& notifier_options,
75 const std::string& invalidator_client_id, 75 const std::string& invalidator_client_id,
76 const InvalidationStateMap& initial_invalidation_state_map, 76 const InvalidationStateMap& initial_invalidation_state_map,
77 const std::string& invalidation_bootstrap_data, 77 const std::string& invalidation_bootstrap_data,
78 const WeakHandle<InvalidationStateTracker>& invalidation_state_tracker, 78 const WeakHandle<InvalidationStateTracker>& invalidation_state_tracker,
79 const std::string& client_info) { 79 const std::string& client_info) {
80 DCHECK(notifier_options.request_context_getter); 80 DCHECK(notifier_options.request_context_getter.get());
81 DCHECK_EQ(notifier::NOTIFICATION_SERVER, 81 DCHECK_EQ(notifier::NOTIFICATION_SERVER,
82 notifier_options.notification_method); 82 notifier_options.notification_method);
83 network_task_runner_ = notifier_options.request_context_getter-> 83 network_task_runner_ = notifier_options.request_context_getter->
84 GetNetworkTaskRunner(); 84 GetNetworkTaskRunner();
85 DCHECK(network_task_runner_->BelongsToCurrentThread()); 85 DCHECK(network_task_runner_->BelongsToCurrentThread());
86 invalidation_notifier_.reset( 86 invalidation_notifier_.reset(
87 new InvalidationNotifier( 87 new InvalidationNotifier(
88 notifier::PushClient::CreateDefaultOnIOThread(notifier_options), 88 notifier::PushClient::CreateDefaultOnIOThread(notifier_options),
89 invalidator_client_id, 89 invalidator_client_id,
90 initial_invalidation_state_map, 90 initial_invalidation_state_map,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 registrar_.UpdateInvalidatorState(state); 239 registrar_.UpdateInvalidatorState(state);
240 } 240 }
241 241
242 void NonBlockingInvalidator::OnIncomingInvalidation( 242 void NonBlockingInvalidator::OnIncomingInvalidation(
243 const ObjectIdInvalidationMap& invalidation_map) { 243 const ObjectIdInvalidationMap& invalidation_map) {
244 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 244 DCHECK(parent_task_runner_->BelongsToCurrentThread());
245 registrar_.DispatchInvalidationsToHandlers(invalidation_map); 245 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
246 } 246 }
247 247
248 } // namespace syncer 248 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/http_bridge_unittest.cc ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698