summaryrefslogtreecommitdiffstats
path: root/content/browser/streams/stream.cc
diff options
context:
space:
mode:
authordavidben <davidben@chromium.org>2014-10-15 12:45:07 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-15 19:45:32 +0000
commit61814fd5bf4f1febc1c41b608dcbcd8a1e46e2c0 (patch)
treeb0dfdf93eba633915d62bbe8c6964dc8cc30ff17 /content/browser/streams/stream.cc
parentf82b4f6830ad16a3dd0c1bfa04f095426aa6ea25 (diff)
downloadchromium_src-61814fd5bf4f1febc1c41b608dcbcd8a1e46e2c0.zip
chromium_src-61814fd5bf4f1febc1c41b608dcbcd8a1e46e2c0.tar.gz
chromium_src-61814fd5bf4f1febc1c41b608dcbcd8a1e46e2c0.tar.bz2
Split up streams logic to prepare for PlzNavigate RDH changes.
This was split out from https://codereview.chromium.org/519533002/ StreamHandle is now split into a StreamHandle and StreamInfo. StreamHandle only manages the stream URL. StreamInfo also contains the headers and other metadata that the streams_private mechanism uses. StreamResourceHandler is also split out into a StreamWriter so other resource handlers may also use it. BUG=376015 Review URL: https://codereview.chromium.org/625993002 Cr-Commit-Position: refs/heads/master@{#299745}
Diffstat (limited to 'content/browser/streams/stream.cc')
-rw-r--r--content/browser/streams/stream.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/content/browser/streams/stream.cc b/content/browser/streams/stream.cc
index d10770c..966313c 100644
--- a/content/browser/streams/stream.cc
+++ b/content/browser/streams/stream.cc
@@ -160,15 +160,9 @@ Stream::StreamState Stream::ReadRawData(net::IOBuffer* buf,
return STREAM_HAS_DATA;
}
-scoped_ptr<StreamHandle> Stream::CreateHandle(
- const GURL& original_url,
- const std::string& mime_type,
- scoped_refptr<net::HttpResponseHeaders> response_headers) {
+scoped_ptr<StreamHandle> Stream::CreateHandle() {
CHECK(!stream_handle_);
- stream_handle_ = new StreamHandleImpl(weak_ptr_factory_.GetWeakPtr(),
- original_url,
- mime_type,
- response_headers);
+ stream_handle_ = new StreamHandleImpl(weak_ptr_factory_.GetWeakPtr());
return scoped_ptr<StreamHandle>(stream_handle_).Pass();
}