|
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | |
vandebo (ex-Chrome)
2010/12/04 00:30:37
2010
vandebo (ex-Chrome)
2010/12/04 00:30:37
Since this is so close to HttpBasicStream, would i
Ryan Hamilton
2010/12/09 21:19:35
Done.
Ryan Hamilton
2010/12/09 21:19:35
You know, I initially considered this approach, an
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/http/connect_response_http_stream.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "net/base/net_errors.h" | |
9 | |
10 namespace net { | |
11 | |
12 ConnectResponseHttpStream::ConnectResponseHttpStream(HttpStreamParser* parser) | |
13 : parser_(parser) { | |
14 } | |
15 | |
16 ConnectResponseHttpStream::~ConnectResponseHttpStream() {} | |
17 | |
18 int ConnectResponseHttpStream::InitializeStream( | |
19 const HttpRequestInfo* request_info, | |
20 const BoundNetLog& net_log, | |
21 CompletionCallback* callback) { | |
22 NOTREACHED(); | |
23 return ERR_UNEXPECTED; | |
24 } | |
25 | |
26 int ConnectResponseHttpStream::SendRequest( | |
27 const HttpRequestHeaders& request_headers, | |
28 UploadDataStream* request_body, | |
29 HttpResponseInfo* response, | |
30 CompletionCallback* callback) { | |
31 NOTREACHED(); | |
32 return ERR_UNEXPECTED; | |
33 } | |
34 | |
35 uint64 ConnectResponseHttpStream::GetUploadProgress() const { | |
36 return 0; | |
37 } | |
38 | |
39 int ConnectResponseHttpStream::ReadResponseHeaders( | |
40 CompletionCallback* callback) { | |
41 NOTREACHED(); | |
42 return ERR_UNEXPECTED; | |
43 } | |
44 | |
45 const HttpResponseInfo* ConnectResponseHttpStream::GetResponseInfo() const { | |
46 NOTREACHED(); | |
47 return NULL; | |
48 } | |
49 | |
50 int ConnectResponseHttpStream::ReadResponseBody(IOBuffer* buf, int buf_len, | |
51 CompletionCallback* callback) { | |
52 return parser_->ReadResponseBody(buf, buf_len, callback); | |
53 } | |
54 | |
55 void ConnectResponseHttpStream::Close(bool not_reusable) { | |
56 return parser_->Close(not_reusable); | |
vandebo (ex-Chrome)
2010/12/04 00:30:37
Should this be ->Close(true); ? Or maybe a class
Ryan Hamilton
2010/12/09 21:19:35
Done.
| |
57 } | |
58 | |
59 HttpStream* ConnectResponseHttpStream::RenewStreamForAuth() { | |
60 NOTREACHED(); | |
61 return NULL; | |
62 } | |
63 | |
64 bool ConnectResponseHttpStream::IsResponseBodyComplete() const { | |
65 return parser_->IsResponseBodyComplete(); | |
66 } | |
67 | |
68 bool ConnectResponseHttpStream::CanFindEndOfResponse() const { | |
69 return parser_->CanFindEndOfResponse(); | |
70 } | |
71 | |
72 bool ConnectResponseHttpStream::IsMoreDataBuffered() const { | |
73 return parser_->IsMoreDataBuffered(); | |
74 } | |
75 | |
76 bool ConnectResponseHttpStream::IsConnectionReused() const { | |
77 return parser_->IsConnectionReused(); | |
78 } | |
79 | |
80 void ConnectResponseHttpStream::SetConnectionReused() { | |
81 parser_->SetConnectionReused(); | |
82 } | |
83 | |
84 void ConnectResponseHttpStream::GetSSLInfo(SSLInfo* ssl_info) { | |
85 parser_->GetSSLInfo(ssl_info); | |
86 } | |
87 | |
88 void ConnectResponseHttpStream::GetSSLCertRequestInfo( | |
89 SSLCertRequestInfo* cert_request_info) { | |
90 parser_->GetSSLCertRequestInfo(cert_request_info); | |
91 } | |
92 | |
93 } // namespace net | |
OLD | NEW |