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

Unified Diff: remoting/protocol/transport.h

Issue 10160012: Pass TransportConfig to TransportFactory instead of Transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: remoting/protocol/transport.h
diff --git a/remoting/protocol/transport.h b/remoting/protocol/transport.h
index 47de7de0199b3389cd8137f559e66031753fd94a..01b0491917bbb8d208f68bd1d7107b58d10734dd 100644
--- a/remoting/protocol/transport.h
+++ b/remoting/protocol/transport.h
@@ -91,7 +91,6 @@ class Transport : public base::NonThreadSafe {
// Intialize the transport with the specified parameters.
// |authenticator| is used to secure and authenticate the connection.
virtual void Initialize(const std::string& name,
- const TransportConfig& config,
Transport::EventHandler* event_handler,
scoped_ptr<ChannelAuthenticator> authenticator) = 0;
@@ -141,6 +140,8 @@ class TransportFactory {
TransportFactory() { }
virtual ~TransportFactory() { }
+ virtual void SetConfig(const TransportConfig& config) = 0;
Wez 2012/04/27 23:49:15 Add some comments to explain this interface, pleas
Wez 2012/04/27 23:49:15 SetConfig -> SetTransportConfig
Wez 2012/04/27 23:49:15 Why do you want the TransportConfig to apply per-T
Sergey Ulanov 2012/04/28 00:18:19 Done.
Sergey Ulanov 2012/04/28 00:18:19 Done.
Sergey Ulanov 2012/04/28 00:18:19 That's in order to be able to share PortAllocator
Wez 2012/04/30 19:33:13 We will want to be able to enable/disable NAT trav
Sergey Ulanov 2012/04/30 20:14:29 As we discussed we don't really need to be able to
+
virtual scoped_ptr<StreamTransport> CreateStreamTransport() = 0;
virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() = 0;
« remoting/protocol/pepper_transport_factory.h ('K') | « remoting/protocol/pepper_transport_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698