OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/http/http_basic_stream.h" | 5 #include "net/http/http_basic_stream.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "net/http/http_request_info.h" | 9 #include "net/http/http_request_info.h" |
10 #include "net/http/http_response_body_drainer.h" | 10 #include "net/http/http_response_body_drainer.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 return parser()->GetSignedEKMForTokenBinding(key, out); | 117 return parser()->GetSignedEKMForTokenBinding(key, out); |
118 } | 118 } |
119 | 119 |
120 void HttpBasicStream::Drain(HttpNetworkSession* session) { | 120 void HttpBasicStream::Drain(HttpNetworkSession* session) { |
121 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); | 121 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); |
122 drainer->Start(session); | 122 drainer->Start(session); |
123 // |drainer| will delete itself. | 123 // |drainer| will delete itself. |
124 } | 124 } |
125 | 125 |
126 void HttpBasicStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 126 void HttpBasicStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
127 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1; | 127 // TODO(mmenke): Consumers don't actually care about HTTP version, but seems |
128 // like the right version should be reported, if headers were received. | |
129 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1_1; | |
mmenke
2016/06/30 22:18:07
This is really weird, and should be fixed. Unfort
| |
128 return; | 130 return; |
129 } | 131 } |
130 | 132 |
131 void HttpBasicStream::SetPriority(RequestPriority priority) { | 133 void HttpBasicStream::SetPriority(RequestPriority priority) { |
132 // TODO(akalin): Plumb this through to |connection_|. | 134 // TODO(akalin): Plumb this through to |connection_|. |
133 } | 135 } |
134 | 136 |
135 } // namespace net | 137 } // namespace net |
OLD | NEW |