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

Unified Diff: remoting/jingle_glue/xmpp_signal_strategy.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/xmpp_signal_strategy.h
diff --git a/remoting/jingle_glue/xmpp_signal_strategy.h b/remoting/jingle_glue/xmpp_signal_strategy.h
index 41f6461c9b9de3d0155eee26190073fffd28bc38..81426fe6038707d7ce7bc00dd4596f9efb8e7eac 100644
--- a/remoting/jingle_glue/xmpp_signal_strategy.h
+++ b/remoting/jingle_glue/xmpp_signal_strategy.h
@@ -12,8 +12,9 @@
#include "remoting/jingle_glue/signal_strategy.h"
+#include <vector>
+
#include "base/compiler_specific.h"
-#include "remoting/jingle_glue/iq_request.h"
#include "third_party/libjingle/source/talk/base/sigslot.h"
#include "third_party/libjingle/source/talk/xmpp/xmppclient.h"
@@ -34,10 +35,10 @@ class XmppSignalStrategy : public SignalStrategy,
// SignalStrategy interface.
virtual void Init(StatusObserver* observer) OVERRIDE;
virtual void Close() OVERRIDE;
- virtual void SetListener(Listener* listener) OVERRIDE;
- virtual void SendStanza(buzz::XmlElement* stanza) OVERRIDE;
+ virtual void AddListener(Listener* listener) OVERRIDE;
+ virtual void RemoveListener(Listener* listener) OVERRIDE;
+ virtual bool SendStanza(buzz::XmlElement* stanza) OVERRIDE;
virtual std::string GetNextId() OVERRIDE;
- virtual IqRequest* CreateIqRequest() OVERRIDE;
// buzz::XmppStanzaHandler interface.
virtual bool HandleStanza(const buzz::XmlElement* stanza) OVERRIDE;
@@ -53,10 +54,9 @@ class XmppSignalStrategy : public SignalStrategy,
std::string auth_token_;
std::string auth_token_service_;
buzz::XmppClient* xmpp_client_;
- IqRegistry iq_registry_;
StatusObserver* observer_;
- Listener* listener_;
+ std::vector<Listener*> listeners_;
DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy);

Powered by Google App Engine
This is Rietveld 408576698