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

Unified Diff: remoting/jingle_glue/javascript_iq_request.cc

Issue 7809003: Simplify IqRequest interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 9 years, 3 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/jingle_glue/javascript_iq_request.h ('k') | remoting/jingle_glue/jingle_info_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/javascript_iq_request.cc
diff --git a/remoting/jingle_glue/javascript_iq_request.cc b/remoting/jingle_glue/javascript_iq_request.cc
index b08ffe980c0d173fcf11095035b926f4f209a924..62366cff412cdaabf3739b09b05bd30f1acb8a40 100644
--- a/remoting/jingle_glue/javascript_iq_request.cc
+++ b/remoting/jingle_glue/javascript_iq_request.cc
@@ -83,12 +83,11 @@ JavascriptIqRequest::~JavascriptIqRequest() {
registry_->RemoveAllRequests(this);
}
-void JavascriptIqRequest::SendIq(const std::string& type,
- const std::string& addressee,
- buzz::XmlElement* iq_body) {
+void JavascriptIqRequest::SendIq(buzz::XmlElement* stanza) {
std::string id = signal_strategy_->GetNextId();
+ stanza->AddAttr(buzz::QN_ID, id);
registry_->RegisterRequest(this, id);
- signal_strategy_->SendStanza(MakeIqStanza(type, addressee, iq_body, id));
+ signal_strategy_->SendStanza(stanza);
}
void JavascriptIqRequest::set_callback(const ReplyCallback& callback) {
« no previous file with comments | « remoting/jingle_glue/javascript_iq_request.h ('k') | remoting/jingle_glue/jingle_info_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698