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 <utility> | 7 #include <utility> |
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return parser()->sent_bytes(); | 92 return parser()->sent_bytes(); |
93 return 0; | 93 return 0; |
94 } | 94 } |
95 | 95 |
96 bool HttpBasicStream::GetLoadTimingInfo( | 96 bool HttpBasicStream::GetLoadTimingInfo( |
97 LoadTimingInfo* load_timing_info) const { | 97 LoadTimingInfo* load_timing_info) const { |
98 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), | 98 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |
99 load_timing_info); | 99 load_timing_info); |
100 } | 100 } |
101 | 101 |
| 102 bool HttpBasicStream::GetAlternativeService( |
| 103 AlternativeService* alternative_service) const { |
| 104 return false; |
| 105 } |
| 106 |
102 void HttpBasicStream::GetSSLInfo(SSLInfo* ssl_info) { | 107 void HttpBasicStream::GetSSLInfo(SSLInfo* ssl_info) { |
103 parser()->GetSSLInfo(ssl_info); | 108 parser()->GetSSLInfo(ssl_info); |
104 } | 109 } |
105 | 110 |
106 void HttpBasicStream::GetSSLCertRequestInfo( | 111 void HttpBasicStream::GetSSLCertRequestInfo( |
107 SSLCertRequestInfo* cert_request_info) { | 112 SSLCertRequestInfo* cert_request_info) { |
108 parser()->GetSSLCertRequestInfo(cert_request_info); | 113 parser()->GetSSLCertRequestInfo(cert_request_info); |
109 } | 114 } |
110 | 115 |
111 bool HttpBasicStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 116 bool HttpBasicStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
(...skipping 20 matching lines...) Expand all Loading... |
132 // like the right version should be reported, if headers were received. | 137 // like the right version should be reported, if headers were received. |
133 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1_1; | 138 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1_1; |
134 return; | 139 return; |
135 } | 140 } |
136 | 141 |
137 void HttpBasicStream::SetPriority(RequestPriority priority) { | 142 void HttpBasicStream::SetPriority(RequestPriority priority) { |
138 // TODO(akalin): Plumb this through to |connection_|. | 143 // TODO(akalin): Plumb this through to |connection_|. |
139 } | 144 } |
140 | 145 |
141 } // namespace net | 146 } // namespace net |
OLD | NEW |