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

Unified Diff: remoting/jingle_glue/jingle_info_request.h

Issue 8432009: Refactor IqRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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/jingle_info_request.h
diff --git a/remoting/jingle_glue/jingle_info_request.h b/remoting/jingle_glue/jingle_info_request.h
index 6d5bcf652c81925877df40292a0deda268e4722e..538b1c4d9170b54926e6f74b4c00e29ab12cac63 100644
--- a/remoting/jingle_glue/jingle_info_request.h
+++ b/remoting/jingle_glue/jingle_info_request.h
@@ -12,10 +12,9 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
+#include "remoting/jingle_glue/iq_sender.h"
#include "third_party/libjingle/source/talk/base/sigslot.h"
-class Task;
-
namespace buzz {
class XmlElement;
} // namespace buzz
@@ -26,7 +25,7 @@ class SocketAddress;
namespace remoting {
-class IqRequest;
+class SignalStrategy;
// JingleInfoRequest handles requesting STUN/Relay infromation from
Wez 2011/11/03 02:09:30 typo: infromation (while you're here...)
Sergey Ulanov 2011/11/03 02:41:31 Done.
// the Google Talk network. The query is made when Send() is
@@ -47,7 +46,7 @@ class JingleInfoRequest : public sigslot::has_slots<> {
const std::string&, const std::vector<std::string>&,
const std::vector<talk_base::SocketAddress>&)> OnJingleInfoCallback;
- explicit JingleInfoRequest(IqRequest* request);
+ explicit JingleInfoRequest(SignalStrategy* signal_strategy);
Wez 2011/11/03 02:09:30 Why create with a SignalStrategy, rather than pass
Sergey Ulanov 2011/11/03 02:41:31 The idea is that IqSender is created by whoever ne
Wez 2011/11/03 17:09:06 When we discussed this previously, the model I had
Sergey Ulanov 2011/11/03 17:56:00 Yes, potentially we could pass IqSender here. It m
virtual ~JingleInfoRequest();
void Send(const OnJingleInfoCallback& callback);
@@ -57,6 +56,7 @@ class JingleInfoRequest : public sigslot::has_slots<> {
void OnResponse(const buzz::XmlElement* stanza);
+ IqSender iq_sender_;
scoped_ptr<IqRequest> request_;
OnJingleInfoCallback on_jingle_info_cb_;

Powered by Google App Engine
This is Rietveld 408576698