Index: net/http/http_stream_factory_impl_job.h |
diff --git a/net/http/http_stream_factory_impl_job.h b/net/http/http_stream_factory_impl_job.h |
index 81b812a60833e0aab87eed5d1acdcc1a0ac1329e..e9c55d02fa130d2a220d67747c7d9ba3404e8a8a 100644 |
--- a/net/http/http_stream_factory_impl_job.h |
+++ b/net/http/http_stream_factory_impl_job.h |
@@ -86,6 +86,7 @@ class HttpStreamFactoryImpl::Job { |
NextProto protocol_negotiated() const; |
bool using_spdy() const; |
const BoundNetLog& net_log() const { return net_log_; } |
+ bool for_bidirectional() const { return for_bidirectional_; } |
const SSLConfig& server_ssl_config() const; |
const SSLConfig& proxy_ssl_config() const; |
@@ -194,6 +195,7 @@ class HttpStreamFactoryImpl::Job { |
}; |
void OnStreamReadyCallback(); |
+ void OnBidirectionalStreamReadyCallback(); |
void OnWebSocketHandshakeStreamReadyCallback(); |
// This callback function is called when a new SPDY session is created. |
void OnNewSpdySessionReadyCallback(); |
@@ -368,6 +370,7 @@ class HttpStreamFactoryImpl::Job { |
scoped_ptr<HttpStream> stream_; |
scoped_ptr<WebSocketHandshakeStreamBase> websocket_stream_; |
+ scoped_ptr<BidirectionalStream> bidirectional_stream_; |
// True if we negotiated NPN. |
bool was_npn_negotiated_; |
@@ -393,6 +396,9 @@ class HttpStreamFactoryImpl::Job { |
JobStatus job_status_; |
JobStatus other_job_status_; |
+ // True if BidirectionalStream is requested. |
+ bool for_bidirectional_; |
+ |
base::WeakPtrFactory<Job> ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(Job); |