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

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: merge 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
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/client_logger.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/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
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
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/client_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698