summaryrefslogtreecommitdiffstats
path: root/net/http/http_basic_stream.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 05:56:38 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 05:56:38 +0000
commit8e6441caa3adedf373b8ff80bb1fb48caff81556 (patch)
tree4a37d2fe5aaa3aad04b01171feb04e329c7e0383 /net/http/http_basic_stream.h
parent33f275a2e2e703c58f514af8efe963e2e29792f9 (diff)
downloadchromium_src-8e6441caa3adedf373b8ff80bb1fb48caff81556.zip
chromium_src-8e6441caa3adedf373b8ff80bb1fb48caff81556.tar.gz
chromium_src-8e6441caa3adedf373b8ff80bb1fb48caff81556.tar.bz2
Extract connection logic from HttpNetworkTransaction into a new
HttpStreamFactory. The HttpNetworkTransaction now deals exclusively with streams rather than connections directly. This cut the size of HTN roughly in in half. The HttpNetworkTransaction is still responsible for all proxy and server authentication functions. This is because the streams may come and go - we could create a stream, have the server declare auth is needed, and then the next attempt would be on a different stream. So Auth belongs on the HNT. The HNT no longer has direct access to the connection itself; instead, it only knows of an HttpStream. The StreamRequest, however, is responsible for determining whether the connection needs to use a proxy, whether AlternateProtocols are available, and whether the connection should be SPDY or HTTP. Other changes: - moved some static configuration methods from HNT to HttpStreamFactory. - added some methods to the HttpStream. BUG=none TEST=all Review URL: http://codereview.chromium.org/3171002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_basic_stream.h')
-rw-r--r--net/http/http_basic_stream.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/http/http_basic_stream.h b/net/http/http_basic_stream.h
index 0c1cbca..f6192e4 100644
--- a/net/http/http_basic_stream.h
+++ b/net/http/http_basic_stream.h
@@ -51,12 +51,22 @@ class HttpBasicStream : public HttpStream {
virtual int ReadResponseBody(IOBuffer* buf, int buf_len,
CompletionCallback* callback);
+ virtual void Close(bool not_reusable);
+
virtual bool IsResponseBodyComplete() const;
virtual bool CanFindEndOfResponse() const;
virtual bool IsMoreDataBuffered() const;
+ virtual bool IsConnectionReused() const;
+
+ virtual void SetConnectionReused();
+
+ virtual void GetSSLInfo(SSLInfo* ssl_info);
+
+ virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
+
private:
scoped_refptr<GrowableIOBuffer> read_buf_;