From e62b65a1dd07c8fd4e1fa61c67c65aecb75a316c Mon Sep 17 00:00:00 2001 From: "raymes@chromium.org" Date: Wed, 26 Mar 2014 05:01:11 +0000 Subject: 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 --- content/public/browser/stream_handle.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'content/public/browser/stream_handle.h') 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 GetResponseHeaders() = 0; }; } // namespace content -- cgit v1.1