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

Side by Side Diff: remoting/host/chromoting_host.cc

Issue 6489031: Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed glint warnings. Created 9 years, 10 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/host/chromoting_host.h" 5 #include "remoting/host/chromoting_host.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "remoting/base/constants.h" 10 #include "remoting/base/constants.h"
(...skipping 17 matching lines...) Expand all
28 28
29 using remoting::protocol::ConnectionToClient; 29 using remoting::protocol::ConnectionToClient;
30 using remoting::protocol::InputStub; 30 using remoting::protocol::InputStub;
31 31
32 namespace remoting { 32 namespace remoting {
33 33
34 // static 34 // static
35 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, 35 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context,
36 MutableHostConfig* config) { 36 MutableHostConfig* config) {
37 Capturer* capturer = Capturer::Create(context->main_message_loop()); 37 Capturer* capturer = Capturer::Create(context->main_message_loop());
38 InputStub* input_stub = CreateEventExecutor(context->main_message_loop(), 38 InputStub* input_stub = CreateEventExecutor(context->ui_message_loop(),
39 capturer); 39 capturer);
40 return Create(context, config, capturer, input_stub); 40 return Create(context, config, capturer, input_stub);
41 } 41 }
42 42
43 // static 43 // static
44 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context, 44 ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context,
45 MutableHostConfig* config, 45 MutableHostConfig* config,
46 Capturer* capturer, 46 Capturer* capturer,
47 InputStub* input_stub) { 47 InputStub* input_stub) {
48 return new ChromotingHost(context, config, capturer, input_stub); 48 return new ChromotingHost(context, config, capturer, input_stub);
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 FROM_HERE, 361 FROM_HERE,
362 NewRunnableMethod(this, &ChromotingHost::LocalLoginSucceeded)); 362 NewRunnableMethod(this, &ChromotingHost::LocalLoginSucceeded));
363 return; 363 return;
364 } 364 }
365 365
366 // If local login has succeeded the recorder can start. 366 // If local login has succeeded the recorder can start.
367 recorder_->Start(); 367 recorder_->Start();
368 } 368 }
369 369
370 } // namespace remoting 370 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698