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

Unified Diff: remoting/jingle_glue/xmpp_signal_strategy.h

Issue 10808094: Always use chromium threads for IO in remoting host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: remoting/jingle_glue/xmpp_signal_strategy.h
diff --git a/remoting/jingle_glue/xmpp_signal_strategy.h b/remoting/jingle_glue/xmpp_signal_strategy.h
index 790b0bddfb52444dce807f8595fdcd6d2d198728..e18019e1c23244746847fbce0bf97b143fd167a7 100644
--- a/remoting/jingle_glue/xmpp_signal_strategy.h
+++ b/remoting/jingle_glue/xmpp_signal_strategy.h
@@ -21,6 +21,14 @@
#include "third_party/libjingle/source/talk/base/sigslot.h"
#include "third_party/libjingle/source/talk/xmpp/xmppclient.h"
+namespace net {
+class URLRequestContextGetter;
+} // namespace net
+
+namespace talk_base {
+class TaskRunner;
+} // namespace talk_base
+
namespace remoting {
class JingleThread;
@@ -30,10 +38,11 @@ class XmppSignalStrategy : public base::NonThreadSafe,
public buzz::XmppStanzaHandler,
public sigslot::has_slots<> {
public:
- XmppSignalStrategy(JingleThread* thread,
- const std::string& username,
- const std::string& auth_token,
- const std::string& auth_token_service);
+ XmppSignalStrategy(
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ const std::string& username,
+ const std::string& auth_token,
+ const std::string& auth_token_service);
virtual ~XmppSignalStrategy();
// SignalStrategy interface.
@@ -70,12 +79,12 @@ class XmppSignalStrategy : public base::NonThreadSafe,
void SendKeepAlive();
- JingleThread* thread_;
-
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
std::string username_;
std::string auth_token_;
std::string auth_token_service_;
std::string resource_name_;
+ scoped_ptr<talk_base::TaskRunner> task_runner_;
buzz::XmppClient* xmpp_client_;
State state_;

Powered by Google App Engine
This is Rietveld 408576698