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

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

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/connection_to_client.h ('k') | remoting/protocol/connection_to_host.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "remoting/protocol/connection_to_client.h" 5 #include "remoting/protocol/connection_to_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
11 #include "remoting/protocol/clipboard_stub.h" 11 #include "remoting/protocol/clipboard_stub.h"
12 #include "remoting/protocol/host_control_dispatcher.h" 12 #include "remoting/protocol/host_control_dispatcher.h"
13 #include "remoting/protocol/host_event_dispatcher.h" 13 #include "remoting/protocol/host_event_dispatcher.h"
14 #include "remoting/protocol/host_stub.h" 14 #include "remoting/protocol/host_stub.h"
15 #include "remoting/protocol/host_video_dispatcher.h" 15 #include "remoting/protocol/host_video_dispatcher.h"
16 #include "remoting/protocol/input_stub.h" 16 #include "remoting/protocol/input_stub.h"
17 17
18 namespace remoting { 18 namespace remoting {
19 namespace protocol { 19 namespace protocol {
20 20
21 ConnectionToClient::ConnectionToClient(protocol::Session* session) 21 ConnectionToClient::ConnectionToClient(protocol::Session* session)
22 : handler_(NULL), 22 : handler_(nullptr),
23 clipboard_stub_(NULL), 23 clipboard_stub_(nullptr),
24 host_stub_(NULL), 24 host_stub_(nullptr),
25 input_stub_(NULL), 25 input_stub_(nullptr),
26 session_(session) { 26 session_(session) {
27 session_->SetEventHandler(this); 27 session_->SetEventHandler(this);
28 } 28 }
29 29
30 ConnectionToClient::~ConnectionToClient() { 30 ConnectionToClient::~ConnectionToClient() {
31 } 31 }
32 32
33 void ConnectionToClient::SetEventHandler(EventHandler* event_handler) { 33 void ConnectionToClient::SetEventHandler(EventHandler* event_handler) {
34 DCHECK(CalledOnValidThread()); 34 DCHECK(CalledOnValidThread());
35 handler_ = event_handler; 35 handler_ = event_handler;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 void ConnectionToClient::CloseChannels() { 206 void ConnectionToClient::CloseChannels() {
207 control_dispatcher_.reset(); 207 control_dispatcher_.reset();
208 event_dispatcher_.reset(); 208 event_dispatcher_.reset();
209 video_dispatcher_.reset(); 209 video_dispatcher_.reset();
210 audio_writer_.reset(); 210 audio_writer_.reset();
211 } 211 }
212 212
213 } // namespace protocol 213 } // namespace protocol
214 } // namespace remoting 214 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_client.h ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698