Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: content/browser/streams/stream_handle_impl.cc

Issue 185663002: Pass http response headers to the streamsPrivate API callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/streams/stream_handle_impl.cc
diff --git a/content/browser/streams/stream_handle_impl.cc b/content/browser/streams/stream_handle_impl.cc
index e7ab8ea243974e915b3b1fd879c6c306565a8700..cdba12b07b34043f6406cf0b8d62e2fc2a9898e4 100644
--- a/content/browser/streams/stream_handle_impl.cc
+++ b/content/browser/streams/stream_handle_impl.cc
@@ -13,11 +13,13 @@ namespace content {
StreamHandleImpl::StreamHandleImpl(const base::WeakPtr<Stream>& stream,
const GURL& original_url,
- const std::string& mime_type)
+ const std::string& mime_type,
+ const std::string& response_headers)
: stream_(stream),
url_(stream->url()),
original_url_(original_url),
mime_type_(mime_type),
+ response_headers_(response_headers),
stream_message_loop_(base::MessageLoopProxy::current().get()) {}
StreamHandleImpl::~StreamHandleImpl() {
@@ -37,4 +39,8 @@ const std::string& StreamHandleImpl::GetMimeType() {
return mime_type_;
}
+const std::string& StreamHandleImpl::GetResponseHeaders() {
+ return response_headers_;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698