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

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

Issue 6594138: Block event processing on host/client until the client has authenticated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing source files Created 9 years, 9 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 | « no previous file | remoting/client/input_handler.cc » ('j') | remoting/client/input_handler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tracer.h" 8 #include "remoting/base/tracer.h"
9 #include "remoting/client/chromoting_view.h" 9 #include "remoting/client/chromoting_view.h"
10 #include "remoting/client/client_context.h" 10 #include "remoting/client/client_context.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void ChromotingClient::BeginSessionResponse( 226 void ChromotingClient::BeginSessionResponse(
227 const protocol::LocalLoginStatus* msg, Task* done) { 227 const protocol::LocalLoginStatus* msg, Task* done) {
228 if (message_loop() != MessageLoop::current()) { 228 if (message_loop() != MessageLoop::current()) {
229 message_loop()->PostTask( 229 message_loop()->PostTask(
230 FROM_HERE, 230 FROM_HERE,
231 NewRunnableMethod(this, &ChromotingClient::BeginSessionResponse, 231 NewRunnableMethod(this, &ChromotingClient::BeginSessionResponse,
232 msg, done)); 232 msg, done));
233 return; 233 return;
234 } 234 }
235 235
236 // Inform the connection that the client has been authenticated. This will
237 // enable the communication channels.
238 connection_->SetClientAuthenticated(msg->success());
Wez 2011/03/04 12:09:38 I'd recommend SetClientAuthenticated(bool) -> if (
garykac 2011/03/04 20:28:02 Done.
239
236 view_->UpdateLoginStatus(msg->success(), msg->error_info()); 240 view_->UpdateLoginStatus(msg->success(), msg->error_info());
237 done->Run(); 241 done->Run();
238 delete done; 242 delete done;
239 } 243 }
240 244
241 } // namespace remoting 245 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/client/input_handler.cc » ('j') | remoting/client/input_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698