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

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

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/host_mock_objects.h » ('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) 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 "base/task.h" 10 #include "base/task.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 void ClientSession::OnConnectionClosed( 104 void ClientSession::OnConnectionClosed(
105 protocol::ConnectionToClient* connection) { 105 protocol::ConnectionToClient* connection) {
106 DCHECK(CalledOnValidThread()); 106 DCHECK(CalledOnValidThread());
107 DCHECK_EQ(connection_.get(), connection); 107 DCHECK_EQ(connection_.get(), connection);
108 event_handler_->OnSessionClosed(this); 108 event_handler_->OnSessionClosed(this);
109 } 109 }
110 110
111 void ClientSession::OnConnectionFailed( 111 void ClientSession::OnConnectionFailed(
112 protocol::ConnectionToClient* connection) { 112 protocol::ConnectionToClient* connection,
113 protocol::Session::Error error) {
113 DCHECK(CalledOnValidThread()); 114 DCHECK(CalledOnValidThread());
114 DCHECK_EQ(connection_.get(), connection); 115 DCHECK_EQ(connection_.get(), connection);
116 if (error == protocol::Session::AUTHENTICATION_FAILED)
117 event_handler_->OnSessionAuthenticationFailed(this);
115 // TODO(sergeyu): Log failure reason? 118 // TODO(sergeyu): Log failure reason?
116 event_handler_->OnSessionClosed(this); 119 event_handler_->OnSessionClosed(this);
117 } 120 }
118 121
119 void ClientSession::OnSequenceNumberUpdated( 122 void ClientSession::OnSequenceNumberUpdated(
120 protocol::ConnectionToClient* connection, int64 sequence_number) { 123 protocol::ConnectionToClient* connection, int64 sequence_number) {
121 DCHECK(CalledOnValidThread()); 124 DCHECK(CalledOnValidThread());
122 DCHECK_EQ(connection_.get(), connection); 125 DCHECK_EQ(connection_.get(), connection);
123 event_handler_->OnSessionSequenceNumber(this, sequence_number); 126 event_handler_->OnSessionSequenceNumber(this, sequence_number);
124 } 127 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 mouse.set_y(remote_mouse_pos_.y()); 244 mouse.set_y(remote_mouse_pos_.y());
242 mouse.set_button((MouseEvent::MouseButton)i); 245 mouse.set_button((MouseEvent::MouseButton)i);
243 mouse.set_button_down(false); 246 mouse.set_button_down(false);
244 input_stub_->InjectMouseEvent(mouse); 247 input_stub_->InjectMouseEvent(mouse);
245 } 248 }
246 } 249 }
247 remote_mouse_button_state_ = 0; 250 remote_mouse_button_state_ = 0;
248 } 251 }
249 252
250 } // namespace remoting 253 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698