summaryrefslogtreecommitdiffstats
path: root/net/http/http_pipelined_stream.cc
diff options
context:
space:
mode:
authorsimonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-30 21:19:58 +0000
committersimonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-30 21:19:58 +0000
commite2bec3977f5b6c9efb518ff41fa9f1bd811706f2 (patch)
tree26e00a8a9980fa43dccdddd44fe251001c443bdd /net/http/http_pipelined_stream.cc
parent1739e57d298ae11f29588ea50c7a30fd4bf5f03c (diff)
downloadchromium_src-e2bec3977f5b6c9efb518ff41fa9f1bd811706f2.zip
chromium_src-e2bec3977f5b6c9efb518ff41fa9f1bd811706f2.tar.gz
chromium_src-e2bec3977f5b6c9efb518ff41fa9f1bd811706f2.tar.bz2
Implement Drain() on HttpPipelinedStream.
BUG=102385 TEST=net_unittests Review URL: http://codereview.chromium.org/8591037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_pipelined_stream.cc')
-rw-r--r--net/http/http_pipelined_stream.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/http/http_pipelined_stream.cc b/net/http/http_pipelined_stream.cc
index 6b844a6..943c2c0 100644
--- a/net/http/http_pipelined_stream.cc
+++ b/net/http/http_pipelined_stream.cc
@@ -118,11 +118,8 @@ void HttpPipelinedStream::LogNumRttVsBytesMetrics() const {
// TODO(simonjam): I don't want to copy & paste this from http_basic_stream.
}
-void HttpPipelinedStream::Drain(HttpNetworkSession*) {
- // On errors, we already evict everything from the pipeline and close it.
- // TODO(simonjam): Consider trying to drain the pipeline in the same way that
- // HttpBasicStream does.
- delete this;
+void HttpPipelinedStream::Drain(HttpNetworkSession* session) {
+ pipeline_->Drain(this, session);
}
const SSLConfig& HttpPipelinedStream::used_ssl_config() const {