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

Unified Diff: remoting/protocol/transport_context.h

Issue 1707223002: Implement HttpIceConfigRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/http_ice_config_request_unittest.cc ('k') | remoting/protocol/transport_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/transport_context.h
diff --git a/remoting/protocol/transport_context.h b/remoting/protocol/transport_context.h
index a944e247b5383ee73fb1abd1d17faff5a1cd5e76..0cc624117912dba50e0b9956b4aa485d9bd1f369 100644
--- a/remoting/protocol/transport_context.h
+++ b/remoting/protocol/transport_context.h
@@ -42,6 +42,11 @@ class TransportContext : public base::RefCountedThreadSafe<TransportContext> {
const NetworkSettings& network_settings,
TransportRole role);
+ // Enables standard TURN servers.
+ void UseTurn(const std::string& ice_config_url) {
+ ice_config_url_ = ice_config_url;
+ }
+
// Prepares fresh JingleInfo. It may be called while connection is being
// negotiated to minimize the chance that the following GetIceConfig() will
// be blocking.
@@ -73,6 +78,8 @@ class TransportContext : public base::RefCountedThreadSafe<TransportContext> {
NetworkSettings network_settings_;
TransportRole role_;
+ std::string ice_config_url_;
+
scoped_ptr<IceConfigRequest> ice_config_request_;
IceConfig ice_config_;
« no previous file with comments | « remoting/protocol/http_ice_config_request_unittest.cc ('k') | remoting/protocol/transport_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698