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

Side by Side Diff: remoting/host/client_session.cc

Issue 9288010: More plumbing for logging connection IP addresses (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/host/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "remoting/host/capturer.h" 10 #include "remoting/host/capturer.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 event_handler_->OnSessionClosed(this); 118 event_handler_->OnSessionClosed(this);
119 } 119 }
120 120
121 void ClientSession::OnSequenceNumberUpdated( 121 void ClientSession::OnSequenceNumberUpdated(
122 protocol::ConnectionToClient* connection, int64 sequence_number) { 122 protocol::ConnectionToClient* connection, int64 sequence_number) {
123 DCHECK(CalledOnValidThread()); 123 DCHECK(CalledOnValidThread());
124 DCHECK_EQ(connection_.get(), connection); 124 DCHECK_EQ(connection_.get(), connection);
125 event_handler_->OnSessionSequenceNumber(this, sequence_number); 125 event_handler_->OnSessionSequenceNumber(this, sequence_number);
126 } 126 }
127 127
128 void ClientSession::OnClientIpEndPoint(protocol::ConnectionToClient* connection,
129 const std::string& channel_name,
130 const net::IPEndPoint& end_point) {
131 DCHECK(CalledOnValidThread());
132 DCHECK_EQ(connection_.get(), connection);
133 event_handler_->OnSessionIpEndPoint(this, channel_name, end_point);
134 }
135
128 void ClientSession::Disconnect() { 136 void ClientSession::Disconnect() {
129 DCHECK(CalledOnValidThread()); 137 DCHECK(CalledOnValidThread());
130 DCHECK(connection_.get()); 138 DCHECK(connection_.get());
131 authenticated_ = false; 139 authenticated_ = false;
132 RestoreEventState(); 140 RestoreEventState();
133 141
134 // This triggers OnSessionClosed() and the session may be destroyed 142 // This triggers OnSessionClosed() and the session may be destroyed
135 // as the result, so this call must be the last in this method. 143 // as the result, so this call must be the last in this method.
136 connection_->Disconnect(); 144 connection_->Disconnect();
137 } 145 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 mouse.set_y(remote_mouse_pos_.y()); 252 mouse.set_y(remote_mouse_pos_.y());
245 mouse.set_button((MouseEvent::MouseButton)i); 253 mouse.set_button((MouseEvent::MouseButton)i);
246 mouse.set_button_down(false); 254 mouse.set_button_down(false);
247 input_stub_->InjectMouseEvent(mouse); 255 input_stub_->InjectMouseEvent(mouse);
248 } 256 }
249 } 257 }
250 remote_mouse_button_state_ = 0; 258 remote_mouse_button_state_ = 0;
251 } 259 }
252 260
253 } // namespace remoting 261 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698