summaryrefslogtreecommitdiffstats
path: root/content/public/browser/stream_handle.h
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 05:01:11 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 05:01:11 +0000
commite62b65a1dd07c8fd4e1fa61c67c65aecb75a316c (patch)
tree05c1d9816ee7eeff5d4cc232b5cfa9a9809a812b /content/public/browser/stream_handle.h
parenta3d215ec60d3a3f1e9316e240d4b14d2a28426fc (diff)
downloadchromium_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/public/browser/stream_handle.h')
-rw-r--r--content/public/browser/stream_handle.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/public/browser/stream_handle.h b/content/public/browser/stream_handle.h
index 877c51d..b87402e 100644
--- a/content/public/browser/stream_handle.h
+++ b/content/public/browser/stream_handle.h
@@ -6,9 +6,14 @@
#define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
#include "base/callback.h"
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
+namespace net {
+class HttpResponseHeaders;
+}
+
namespace content {
class CONTENT_EXPORT StreamHandle {
@@ -25,7 +30,7 @@ class CONTENT_EXPORT StreamHandle {
virtual const std::string& GetMimeType() = 0;
// Get the HTTP response headers associated with this Stream.
- virtual const std::string& GetResponseHeaders() = 0;
+ virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0;
};
} // namespace content