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

Unified Diff: remoting/protocol/ice_transport.h

Issue 1662673002: Add MessageChanneFactory interface and use it in ChannelDispatcherBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@framing
Patch Set: Created 4 years, 11 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/ice_connection_to_host.cc ('k') | remoting/protocol/ice_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_transport.h
diff --git a/remoting/protocol/ice_transport.h b/remoting/protocol/ice_transport.h
index 60e42114f9619942bd6d927f4029e14929d8a256..e47fc3b546fe63af3538025e8408814a529cf91d 100644
--- a/remoting/protocol/ice_transport.h
+++ b/remoting/protocol/ice_transport.h
@@ -22,6 +22,7 @@ namespace protocol {
class ChannelMultiplexer;
class PseudoTcpChannelFactory;
class SecureChannelFactory;
+class MessageChannelFactory;
class IceTransport : public Transport,
public IceTransportChannel::Delegate,
@@ -42,8 +43,8 @@ class IceTransport : public Transport,
EventHandler* event_handler);
~IceTransport() override;
- StreamChannelFactory* GetStreamChannelFactory();
- StreamChannelFactory* GetMultiplexedChannelFactory();
+ MessageChannelFactory* GetChannelFactory();
+ MessageChannelFactory* GetMultiplexedChannelFactory();
// Transport interface.
void Start(Authenticator* authenticator,
@@ -80,6 +81,10 @@ class IceTransport : public Transport,
// Sends transport-info message with candidates from |pending_candidates_|.
void SendTransportInfo();
+ // Callback passed to StreamMessageChannelFactoryAdapter to handle read/write
+ // errors on the data channels.
+ void OnChannelError(int error);
+
scoped_refptr<TransportContext> transport_context_;
EventHandler* event_handler_;
@@ -88,7 +93,10 @@ class IceTransport : public Transport,
ChannelsMap channels_;
scoped_ptr<PseudoTcpChannelFactory> pseudotcp_channel_factory_;
scoped_ptr<SecureChannelFactory> secure_channel_factory_;
+ scoped_ptr<MessageChannelFactory> message_channel_factory_;
+
scoped_ptr<ChannelMultiplexer> channel_multiplexer_;
+ scoped_ptr<MessageChannelFactory> mux_channel_factory_;
// Pending remote transport info received before the local channels were
// created.
« no previous file with comments | « remoting/protocol/ice_connection_to_host.cc ('k') | remoting/protocol/ice_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698