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

Unified Diff: remoting/protocol/jingle_info_request.h

Issue 1694613002: Add IceConfig and IceConfigRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_request
Patch Set: Created 4 years, 10 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/ice_config_request.h ('k') | remoting/protocol/jingle_info_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_info_request.h
diff --git a/remoting/protocol/jingle_info_request.h b/remoting/protocol/jingle_info_request.h
new file mode 100644
index 0000000000000000000000000000000000000000..f905539ca4c2aba4159ac062c02b77a2379f12e0
--- /dev/null
+++ b/remoting/protocol/jingle_info_request.h
@@ -0,0 +1,50 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_JINGLE_INFO_REQUEST_H_
+#define REMOTING_PROTOCOL_JINGLE_INFO_REQUEST_H_
+
+#include <set>
+#include <string>
+#include <vector>
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "remoting/protocol/ice_config_request.h"
+#include "remoting/signaling/iq_sender.h"
+
+namespace buzz {
+class XmlElement;
+} // namespace buzz
+
+namespace remoting {
+
+class SignalStrategy;
+
+namespace protocol {
+
+// IceConfigRequest that fetches IceConfig from Google Talk servers using HTTP.
+class JingleInfoRequest : public IceConfigRequest {
+ public:
+ explicit JingleInfoRequest(SignalStrategy* signal_strategy);
+ ~JingleInfoRequest() override;
+
+ // IceConfigRequest interface.
+ void Send(const OnIceConfigCallback& callback) override;
+
+ private:
+ void OnResponse(IqRequest* request, const buzz::XmlElement* stanza);
+
+ IqSender iq_sender_;
+ scoped_ptr<IqRequest> request_;
+ OnIceConfigCallback on_ice_config_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(JingleInfoRequest);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_JINGLE_INFO_REQUEST_H_
« no previous file with comments | « remoting/protocol/ice_config_request.h ('k') | remoting/protocol/jingle_info_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698