Index: net/http/http_stream_factory.h |
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h |
index c2f4b6e9dec6fb5723ba90c6916f96567d45a6aa..53d6fb274c9997f8741cecbd1841567897c0a8dc 100644 |
--- a/net/http/http_stream_factory.h |
+++ b/net/http/http_stream_factory.h |
@@ -33,6 +33,7 @@ namespace net { |
class AuthCredentials; |
class BoundNetLog; |
+class BidirectionalStreamJob; |
class HostMappingRules; |
class HostPortPair; |
class HttpAuthController; |
@@ -84,6 +85,11 @@ class NET_EXPORT_PRIVATE HttpStreamRequest { |
const ProxyInfo& used_proxy_info, |
WebSocketHandshakeStreamBase* stream) = 0; |
+ virtual void OnBidirectionalStreamJobReady( |
+ const SSLConfig& used_ssl_config, |
+ const ProxyInfo& used_proxy_info, |
+ BidirectionalStreamJob* stream) = 0; |
+ |
// This is the failure to create a stream case. |
// |used_ssl_config| indicates the actual SSL configuration used for this |
// stream, since the HttpStreamRequest may have modified the configuration |
@@ -226,6 +232,17 @@ class NET_EXPORT HttpStreamFactory { |
WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
const BoundNetLog& net_log) = 0; |
+ // Request a BidirectionalStreamJob. |
+ // Will call delegate->OnBidirectionalStreamJobReady on successful |
+ // completion. |
+ virtual HttpStreamRequest* RequestBidirectionalStreamJob( |
+ const HttpRequestInfo& info, |
+ RequestPriority priority, |
+ const SSLConfig& server_ssl_config, |
+ const SSLConfig& proxy_ssl_config, |
+ HttpStreamRequest::Delegate* delegate, |
+ const BoundNetLog& net_log) = 0; |
+ |
// Requests that enough connections for |num_streams| be opened. |
virtual void PreconnectStreams(int num_streams, |
const HttpRequestInfo& info, |