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

Side by Side Diff: remoting/protocol/ice_connection_to_client.cc

Issue 2890833002: Adding ThreadChecker validation to d'tors for protocol classes (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/protocol/channel_socket_adapter.cc ('k') | remoting/protocol/ice_transport_channel.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/protocol/ice_connection_to_client.h" 5 #include "remoting/protocol/ice_connection_to_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 video_encode_task_runner_(std::move(video_encode_task_runner)), 60 video_encode_task_runner_(std::move(video_encode_task_runner)),
61 audio_task_runner_(std::move(audio_task_runner)), 61 audio_task_runner_(std::move(audio_task_runner)),
62 transport_(transport_context, this), 62 transport_(transport_context, this),
63 control_dispatcher_(new HostControlDispatcher()), 63 control_dispatcher_(new HostControlDispatcher()),
64 event_dispatcher_(new HostEventDispatcher()), 64 event_dispatcher_(new HostEventDispatcher()),
65 video_dispatcher_(new HostVideoDispatcher()) { 65 video_dispatcher_(new HostVideoDispatcher()) {
66 session_->SetEventHandler(this); 66 session_->SetEventHandler(this);
67 session_->SetTransport(&transport_); 67 session_->SetTransport(&transport_);
68 } 68 }
69 69
70 IceConnectionToClient::~IceConnectionToClient() {} 70 IceConnectionToClient::~IceConnectionToClient() {
71 DCHECK(thread_checker_.CalledOnValidThread());
72 }
71 73
72 void IceConnectionToClient::SetEventHandler( 74 void IceConnectionToClient::SetEventHandler(
73 ConnectionToClient::EventHandler* event_handler) { 75 ConnectionToClient::EventHandler* event_handler) {
74 DCHECK(thread_checker_.CalledOnValidThread()); 76 DCHECK(thread_checker_.CalledOnValidThread());
75 event_handler_ = event_handler; 77 event_handler_ = event_handler;
76 } 78 }
77 79
78 protocol::Session* IceConnectionToClient::session() { 80 protocol::Session* IceConnectionToClient::session() {
79 DCHECK(thread_checker_.CalledOnValidThread()); 81 DCHECK(thread_checker_.CalledOnValidThread());
80 return session_.get(); 82 return session_.get();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 226
225 void IceConnectionToClient::CloseChannels() { 227 void IceConnectionToClient::CloseChannels() {
226 control_dispatcher_.reset(); 228 control_dispatcher_.reset();
227 event_dispatcher_.reset(); 229 event_dispatcher_.reset();
228 video_dispatcher_.reset(); 230 video_dispatcher_.reset();
229 audio_writer_.reset(); 231 audio_writer_.reset();
230 } 232 }
231 233
232 } // namespace protocol 234 } // namespace protocol
233 } // namespace remoting 235 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/channel_socket_adapter.cc ('k') | remoting/protocol/ice_transport_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698