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

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
« no previous file with comments | « remoting/protocol/pepper_transport_factory.cc ('k') | no next file » | 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 47de7de0199b3389cd8137f559e66031753fd94a..251724cda28e8a19b3bf4d1189b43e74e6f19f52 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,9 @@ class TransportFactory {
TransportFactory() { }
virtual ~TransportFactory() { }
+ // Sets configuration for the transports created by this factory.
+ virtual void SetTransportConfig(const TransportConfig& config) = 0;
+
virtual scoped_ptr<StreamTransport> CreateStreamTransport() = 0;
virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() = 0;
« no previous file with comments | « remoting/protocol/pepper_transport_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698