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

Side by Side Diff: remoting/client/chromoting_client.cc

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review changes Created 9 years, 5 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698