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

Unified Diff: remoting/protocol/connection_to_host.h

Issue 10332304: Don't depend on MessageLoopProxy in remoting protocol code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.h
diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h
index 9deb3b69de0066b8d4c292bbddd33b0803121e53..aa0bcda2cd1e9983bba283f6297f5a03ac82a5e1 100644
--- a/remoting/protocol/connection_to_host.h
+++ b/remoting/protocol/connection_to_host.h
@@ -10,6 +10,7 @@
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/threading/non_thread_safe.h"
#include "remoting/jingle_glue/signal_strategy.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/clipboard_filter.h"
@@ -19,10 +20,6 @@
#include "remoting/protocol/session.h"
#include "remoting/protocol/session_manager.h"
-namespace base {
-class MessageLoopProxy;
-} // namespace base
-
namespace pp {
class Instance;
} // namespace pp
@@ -47,7 +44,8 @@ class VideoReader;
class VideoStub;
class ConnectionToHost : public SignalStrategy::Listener,
- public SessionManager::Listener {
+ public SessionManager::Listener,
+ public base::NonThreadSafe {
public:
enum State {
CONNECTING,
@@ -64,8 +62,7 @@ class ConnectionToHost : public SignalStrategy::Listener,
virtual void OnConnectionState(State state, ErrorCode error) = 0;
};
- ConnectionToHost(base::MessageLoopProxy* message_loop,
- bool allow_nat_traversal);
+ ConnectionToHost(bool allow_nat_traversal);
virtual ~ConnectionToHost();
virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy,
@@ -122,7 +119,6 @@ class ConnectionToHost : public SignalStrategy::Listener,
void SetState(State state, ErrorCode error);
- scoped_refptr<base::MessageLoopProxy> message_loop_;
bool allow_nat_traversal_;
std::string host_jid_;
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698