summaryrefslogtreecommitdiffstats
path: root/remoting/client/client_context.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-21 03:37:33 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-21 03:37:33 +0000
commit25f81b94738bab3593129002e20f4f031cc8c94d (patch)
tree66732ee91308ae883b6e462ed484cf2712028bac /remoting/client/client_context.h
parent149b62c5e7f27b9b5f22d69a24a02825adb3238e (diff)
downloadchromium_src-25f81b94738bab3593129002e20f4f031cc8c94d.zip
chromium_src-25f81b94738bab3593129002e20f4f031cc8c94d.tar.gz
chromium_src-25f81b94738bab3593129002e20f4f031cc8c94d.tar.bz2
Use plugin message loop for main loop in the client plugin.
BUG=None TEST=None Review URL: http://codereview.chromium.org/7669037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/client_context.h')
-rw-r--r--remoting/client/client_context.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/remoting/client/client_context.h b/remoting/client/client_context.h
index d0d584a..e64303f 100644
--- a/remoting/client/client_context.h
+++ b/remoting/client/client_context.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -16,28 +16,22 @@ namespace remoting {
// process.
class ClientContext {
public:
- ClientContext();
+ ClientContext(base::MessageLoopProxy* main_message_loop_proxy);
virtual ~ClientContext();
void Start();
void Stop();
- MessageLoop* main_message_loop();
+ base::MessageLoopProxy* main_message_loop();
MessageLoop* decode_message_loop();
base::MessageLoopProxy* network_message_loop();
private:
- // A thread that handles capture rate control and sending data to the
- // HostConnection.
- base::Thread main_thread_;
+ scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_;
// A thread that handles all decode operations.
base::Thread decode_thread_;
- // A thread that handles all network IO.
- //
- // TODO(sergeyu): Remove |network_thread_| and use main plugin
- // message loop for network IO.
base::Thread network_thread_;
DISALLOW_COPY_AND_ASSIGN(ClientContext);