diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-26 05:01:11 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-26 05:01:11 +0000 |
commit | e62b65a1dd07c8fd4e1fa61c67c65aecb75a316c (patch) | |
tree | 05c1d9816ee7eeff5d4cc232b5cfa9a9809a812b /content/browser/streams/stream.h | |
parent | a3d215ec60d3a3f1e9316e240d4b14d2a28426fc (diff) | |
download | chromium_src-e62b65a1dd07c8fd4e1fa61c67c65aecb75a316c.zip chromium_src-e62b65a1dd07c8fd4e1fa61c67c65aecb75a316c.tar.gz chromium_src-e62b65a1dd07c8fd4e1fa61c67c65aecb75a316c.tar.bz2 |
Change the streamsPrivate extensions API to return HTTP response headers in a dictionary
This changes from returning the response headers as a raw string to a dictionary mapping
header name to header value. If there are multiple headers with the same name, the values
are merged in a dictionary and separated by a ", ".
BUG=350755
Review URL: https://codereview.chromium.org/198463005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/streams/stream.h')
-rw-r--r-- | content/browser/streams/stream.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h index e439b72..e7e9586 100644 --- a/content/browser/streams/stream.h +++ b/content/browser/streams/stream.h @@ -13,6 +13,7 @@ #include "url/gurl.h" namespace net { +class HttpResponseHeaders; class IOBuffer; } @@ -77,9 +78,10 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> { // and STREAM_COMPLETE if the stream is finalized and all data has been read. StreamState ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); - scoped_ptr<StreamHandle> CreateHandle(const GURL& original_url, - const std::string& mime_type, - const std::string& response_headers); + scoped_ptr<StreamHandle> CreateHandle( + const GURL& original_url, + const std::string& mime_type, + scoped_refptr<net::HttpResponseHeaders> response_headers); void CloseHandle(); // Indicates whether there is space in the buffer to add more data. |