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; |