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

Unified Diff: remoting/protocol/port_allocator.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/jingle_info_request.cc ('k') | remoting/protocol/port_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/port_allocator.h
diff --git a/remoting/protocol/port_allocator.h b/remoting/protocol/port_allocator.h
index 048cc58c42e49fb46fe2527c6634512b27f57524..947173f2c7ba1504a708c8909fa0c989b6ddcdad 100644
--- a/remoting/protocol/port_allocator.h
+++ b/remoting/protocol/port_allocator.h
@@ -10,13 +10,13 @@
#include "base/memory/weak_ptr.h"
#include "remoting/base/url_request.h"
+#include "remoting/protocol/ice_config.h"
+#include "remoting/protocol/transport_context.h"
#include "third_party/webrtc/p2p/client/basicportallocator.h"
namespace remoting {
namespace protocol {
-class TransportContext;
-
class PortAllocator : public cricket::BasicPortAllocator {
public:
PortAllocator(scoped_ptr<rtc::NetworkManager> network_manager,
@@ -51,19 +51,13 @@ class PortAllocatorSession : public cricket::BasicPortAllocatorSession {
private:
void GetPortConfigurations() override;
- void OnJingleInfo(std::vector<rtc::SocketAddress> stun_hosts,
- std::vector<std::string> relay_hosts,
- std::string relay_token);
+ void OnIceConfig(const IceConfig& ice_config);
void TryCreateRelaySession();
void OnSessionRequestResult(const UrlRequest::Result& result);
- const std::string& relay_token() const { return relay_token_; }
-
scoped_refptr<TransportContext> transport_context_;
- std::vector<rtc::SocketAddress> stun_hosts_;
- std::vector<std::string> relay_hosts_;
- std::string relay_token_;
+ IceConfig ice_config_;
int attempts_ = 0;
« no previous file with comments | « remoting/protocol/jingle_info_request.cc ('k') | remoting/protocol/port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698