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