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

Unified Diff: remoting/client/chromoting_client.h

Issue 10454018: MessageLoopProxy cleanups in remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.h
diff --git a/remoting/client/chromoting_client.h b/remoting/client/chromoting_client.h
index 6856a201ae0636077ed35301893057cc948adc1b..9bfada3f58ebdab4b20d28b63b650fe8ca3609da 100644
--- a/remoting/client/chromoting_client.h
+++ b/remoting/client/chromoting_client.h
@@ -22,7 +22,9 @@
#include "remoting/protocol/video_stub.h"
#include "remoting/jingle_glue/xmpp_proxy.h"
-class MessageLoop;
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
namespace remoting {
@@ -30,7 +32,6 @@ namespace protocol {
class TransportFactory;
} // namespace protocol
-class ClientContext;
class RectangleUpdateDecoder;
// TODO(sergeyu): Move VideoStub implementation to RectangleUpdateDecoder.
@@ -40,17 +41,16 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
public:
// Objects passed in are not owned by this class.
ChromotingClient(const ClientConfig& config,
- ClientContext* context,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
protocol::ConnectionToHost* connection,
ChromotingView* view,
- RectangleUpdateDecoder* rectangle_decoder,
- const base::Closure& client_done);
+ RectangleUpdateDecoder* rectangle_decoder);
virtual ~ChromotingClient();
+ // Start/stop the client. Must be called on the main thread.
void Start(scoped_refptr<XmppProxy> xmpp_proxy,
scoped_ptr<protocol::TransportFactory> transport_factory);
void Stop(const base::Closure& shutdown_task);
- void ClientDone();
// Return the stats recorded by this client.
ChromotingStats* GetStats();
@@ -82,8 +82,6 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
base::Closure done;
};
- base::MessageLoopProxy* message_loop();
-
// Initializes connection.
void Initialize();
@@ -100,7 +98,7 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
// The following are not owned by this class.
ClientConfig config_;
- ClientContext* context_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
protocol::ConnectionToHost* connection_;
ChromotingView* view_;
RectangleUpdateDecoder* rectangle_decoder_;
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698