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

Side by Side Diff: remoting/protocol/host_event_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/host_control_dispatcher.cc ('k') | remoting/protocol/input_filter.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_event_dispatcher.h" 5 #include "remoting/protocol/host_event_dispatcher.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "net/socket/stream_socket.h" 8 #include "net/socket/stream_socket.h"
9 #include "remoting/base/constants.h" 9 #include "remoting/base/constants.h"
10 #include "remoting/proto/event.pb.h" 10 #include "remoting/proto/event.pb.h"
11 #include "remoting/proto/internal.pb.h" 11 #include "remoting/proto/internal.pb.h"
12 #include "remoting/protocol/input_stub.h" 12 #include "remoting/protocol/input_stub.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 namespace protocol { 15 namespace protocol {
16 16
17 HostEventDispatcher::HostEventDispatcher() 17 HostEventDispatcher::HostEventDispatcher()
18 : ChannelDispatcherBase(kEventChannelName), 18 : ChannelDispatcherBase(kEventChannelName),
19 input_stub_(NULL) { 19 input_stub_(nullptr) {
20 } 20 }
21 21
22 HostEventDispatcher::~HostEventDispatcher() { 22 HostEventDispatcher::~HostEventDispatcher() {
23 } 23 }
24 24
25 void HostEventDispatcher::OnInitialized() { 25 void HostEventDispatcher::OnInitialized() {
26 reader_.Init(channel(), base::Bind( 26 reader_.Init(channel(), base::Bind(
27 &HostEventDispatcher::OnMessageReceived, base::Unretained(this))); 27 &HostEventDispatcher::OnMessageReceived, base::Unretained(this)));
28 } 28 }
29 29
(...skipping 22 matching lines...) Expand all
52 } 52 }
53 } else if (message->has_mouse_event()) { 53 } else if (message->has_mouse_event()) {
54 input_stub_->InjectMouseEvent(message->mouse_event()); 54 input_stub_->InjectMouseEvent(message->mouse_event());
55 } else { 55 } else {
56 LOG(WARNING) << "Unknown event message received."; 56 LOG(WARNING) << "Unknown event message received.";
57 } 57 }
58 } 58 }
59 59
60 } // namespace protocol 60 } // namespace protocol
61 } // namespace remoting 61 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/host_control_dispatcher.cc ('k') | remoting/protocol/input_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698