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

Side by Side Diff: remoting/protocol/host_control_dispatcher.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/fake_stream_socket.cc ('k') | remoting/protocol/host_event_dispatcher.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 (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 "remoting/protocol/host_control_dispatcher.h" 5 #include "remoting/protocol/host_control_dispatcher.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "net/socket/stream_socket.h" 9 #include "net/socket/stream_socket.h"
10 #include "remoting/base/constants.h" 10 #include "remoting/base/constants.h"
11 #include "remoting/proto/control.pb.h" 11 #include "remoting/proto/control.pb.h"
12 #include "remoting/proto/internal.pb.h" 12 #include "remoting/proto/internal.pb.h"
13 #include "remoting/protocol/clipboard_stub.h" 13 #include "remoting/protocol/clipboard_stub.h"
14 #include "remoting/protocol/host_stub.h" 14 #include "remoting/protocol/host_stub.h"
15 #include "remoting/protocol/message_serialization.h" 15 #include "remoting/protocol/message_serialization.h"
16 16
17 namespace remoting { 17 namespace remoting {
18 namespace protocol { 18 namespace protocol {
19 19
20 HostControlDispatcher::HostControlDispatcher() 20 HostControlDispatcher::HostControlDispatcher()
21 : ChannelDispatcherBase(kControlChannelName), 21 : ChannelDispatcherBase(kControlChannelName),
22 clipboard_stub_(NULL), 22 clipboard_stub_(nullptr),
23 host_stub_(NULL) { 23 host_stub_(nullptr) {
24 } 24 }
25 25
26 HostControlDispatcher::~HostControlDispatcher() { 26 HostControlDispatcher::~HostControlDispatcher() {
27 writer_.Close(); 27 writer_.Close();
28 } 28 }
29 29
30 void HostControlDispatcher::OnInitialized() { 30 void HostControlDispatcher::OnInitialized() {
31 reader_.Init(channel(), base::Bind( 31 reader_.Init(channel(), base::Bind(
32 &HostControlDispatcher::OnMessageReceived, base::Unretained(this))); 32 &HostControlDispatcher::OnMessageReceived, base::Unretained(this)));
33 writer_.Init(channel(), BufferedSocketWriter::WriteFailedCallback()); 33 writer_.Init(channel(), BufferedSocketWriter::WriteFailedCallback());
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 host_stub_->RequestPairing(message->pairing_request()); 88 host_stub_->RequestPairing(message->pairing_request());
89 } else if (message->has_extension_message()) { 89 } else if (message->has_extension_message()) {
90 host_stub_->DeliverClientMessage(message->extension_message()); 90 host_stub_->DeliverClientMessage(message->extension_message());
91 } else { 91 } else {
92 LOG(WARNING) << "Unknown control message received."; 92 LOG(WARNING) << "Unknown control message received.";
93 } 93 }
94 } 94 }
95 95
96 } // namespace protocol 96 } // namespace protocol
97 } // namespace remoting 97 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_stream_socket.cc ('k') | remoting/protocol/host_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698