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

Unified Diff: remoting/protocol/transport.h

Issue 98173006: Fix LibjingleTransportFactory to refresh STUN/Relay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/session_manager.h ('k') | remoting/protocol/transport_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/transport.h
diff --git a/remoting/protocol/transport.h b/remoting/protocol/transport.h
index fe2f4e1cbfb78d2d749c149008b0905d0d7bfdf0..196b9d25f3ad76927fad9458d316a8a3de463469 100644
--- a/remoting/protocol/transport.h
+++ b/remoting/protocol/transport.h
@@ -43,7 +43,6 @@ namespace remoting {
namespace protocol {
class ChannelAuthenticator;
-struct TransportConfig;
struct TransportRoute {
enum RouteType {
@@ -151,8 +150,11 @@ class TransportFactory {
TransportFactory() { }
virtual ~TransportFactory() { }
- // Sets configuration for the transports created by this factory.
- virtual void SetTransportConfig(const TransportConfig& config) = 0;
+ // Called to notify transport factory that a new transport might be created
+ // soon, e.g. when a new session is being created. Implementation may use it
+ // to start asynchronous preparation, e.g. fetch a new relay token if
+ // necessary while the session is being authenticated.
+ virtual void PrepareTokens() = 0;
virtual scoped_ptr<StreamTransport> CreateStreamTransport() = 0;
virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() = 0;
« no previous file with comments | « remoting/protocol/session_manager.h ('k') | remoting/protocol/transport_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698