Index: net/http/http_stream_factory_impl_request.h |
diff --git a/net/http/http_stream_factory_impl_request.h b/net/http/http_stream_factory_impl_request.h |
index cad61afcce468ef79c2f4538d9d088c8180f1131..a92303c97b912462ca26b1b4b7d06e892fa8a814 100644 |
--- a/net/http/http_stream_factory_impl_request.h |
+++ b/net/http/http_stream_factory_impl_request.h |
@@ -27,6 +27,12 @@ |
class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
public: |
+ // Indicates which type of stream is requested. |
+ enum StreamType { |
+ BIDIRECTIONAL_STREAM_SPDY_JOB, |
+ HTTP_STREAM, |
+ }; |
+ |
Request(const GURL& url, |
HttpStreamFactoryImpl* factory, |
HttpStreamRequest::Delegate* delegate, |
@@ -63,9 +69,8 @@ |
void RemoveRequestFromSpdySessionRequestMap(); |
// Called by an attached Job if it sets up a SpdySession. |
- // |stream| is null when |stream_type| is HttpStreamRequest::HTTP_STREAM. |
- // |bidirectional_stream_spdy_job| is null when |stream_type| is |
- // HttpStreamRequest::BIDIRECTIONAL_STREAM. |
+ // |stream| is null when |for_bidirectional| is true. |
+ // |bidirectional_stream_spdy_job| is null when |for_bidirectional| is false. |
void OnNewSpdySessionReady( |
Job* job, |
scoped_ptr<HttpStream> stream, |
@@ -134,7 +139,7 @@ |
NextProto protocol_negotiated() const override; |
bool using_spdy() const override; |
const ConnectionAttempts& connection_attempts() const override; |
- HttpStreamRequest::StreamType stream_type() const { return stream_type_; } |
+ bool for_bidirectional() const { return for_bidirectional_; } |
private: |
// Used to bind |job| to the request and orphan all other jobs in |jobs_|. |
@@ -168,7 +173,7 @@ |
bool using_spdy_; |
ConnectionAttempts connection_attempts_; |
- const HttpStreamRequest::StreamType stream_type_; |
+ const bool for_bidirectional_; |
DISALLOW_COPY_AND_ASSIGN(Request); |
}; |