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

Unified Diff: remoting/protocol/session.h

Issue 1413813006: Revert of Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/protocol_mock_objects.h ('k') | remoting/protocol/transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session.h
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index 4f068f83f0ddc9d7b1118dfcd48d98382fb916c8..6fcd2c61993cb3efdb591b71e4880993f531ed49 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -10,11 +10,14 @@
#include "remoting/protocol/errors.h"
#include "remoting/protocol/session_config.h"
+namespace net {
+class IPEndPoint;
+} // namespace net
+
namespace remoting {
namespace protocol {
class StreamChannelFactory;
-class TransportSession;
struct TransportRoute;
// Generic interface for Chromotocol connection used by both client and host.
@@ -82,11 +85,11 @@
// Returned pointer is valid until connection is closed.
virtual const SessionConfig& config() = 0;
- // Returns TransportSession that can be used to create transport channels.
- virtual TransportSession* GetTransportSession() = 0;
-
- // Channel factory for QUIC-based channels. Returns nullptr when QUIC is
- // disabled for the session.
+ // GetTransportChannelFactory() returns a factory that creates a new transport
+ // channel for each logical channel. GetMultiplexedChannelFactory() channels
+ // share a single underlying transport channel
+ virtual StreamChannelFactory* GetTransportChannelFactory() = 0;
+ virtual StreamChannelFactory* GetMultiplexedChannelFactory() = 0;
virtual StreamChannelFactory* GetQuicChannelFactory() = 0;
// Closes connection. Callbacks are guaranteed not to be called
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698