OLD | NEW |
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/client/chromoting_client.h" | 5 #include "remoting/client/chromoting_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "remoting/base/logger.h" |
9 #include "remoting/base/tracer.h" | 10 #include "remoting/base/tracer.h" |
10 #include "remoting/client/chromoting_view.h" | 11 #include "remoting/client/chromoting_view.h" |
11 #include "remoting/client/client_context.h" | 12 #include "remoting/client/client_context.h" |
12 #include "remoting/client/client_logger.h" | |
13 #include "remoting/client/input_handler.h" | 13 #include "remoting/client/input_handler.h" |
14 #include "remoting/client/rectangle_update_decoder.h" | 14 #include "remoting/client/rectangle_update_decoder.h" |
15 #include "remoting/protocol/connection_to_host.h" | 15 #include "remoting/protocol/connection_to_host.h" |
16 #include "remoting/protocol/session_config.h" | 16 #include "remoting/protocol/session_config.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 ChromotingClient::ChromotingClient(const ClientConfig& config, | 20 ChromotingClient::ChromotingClient(const ClientConfig& config, |
21 ClientContext* context, | 21 ClientContext* context, |
22 protocol::ConnectionToHost* connection, | 22 protocol::ConnectionToHost* connection, |
23 ChromotingView* view, | 23 ChromotingView* view, |
24 RectangleUpdateDecoder* rectangle_decoder, | 24 RectangleUpdateDecoder* rectangle_decoder, |
25 InputHandler* input_handler, | 25 InputHandler* input_handler, |
26 ClientLogger* logger, | 26 Logger* logger, |
27 Task* client_done) | 27 Task* client_done) |
28 : config_(config), | 28 : config_(config), |
29 context_(context), | 29 context_(context), |
30 connection_(connection), | 30 connection_(connection), |
31 view_(view), | 31 view_(view), |
32 rectangle_decoder_(rectangle_decoder), | 32 rectangle_decoder_(rectangle_decoder), |
33 input_handler_(input_handler), | 33 input_handler_(input_handler), |
34 logger_(logger), | 34 logger_(logger), |
35 client_done_(client_done), | 35 client_done_(client_done), |
36 state_(CREATED), | 36 state_(CREATED), |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 if (msg->success()) { | 291 if (msg->success()) { |
292 connection_->OnClientAuthenticated(); | 292 connection_->OnClientAuthenticated(); |
293 } | 293 } |
294 | 294 |
295 view_->UpdateLoginStatus(msg->success(), msg->error_info()); | 295 view_->UpdateLoginStatus(msg->success(), msg->error_info()); |
296 done->Run(); | 296 done->Run(); |
297 delete done; | 297 delete done; |
298 } | 298 } |
299 | 299 |
300 } // namespace remoting | 300 } // namespace remoting |
OLD | NEW |