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

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

Issue 588643002: Make a copy of HttpResponseHeaders in StreamHandleImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6ff49621b57f10744cc10fe875906da362bc97ca..d07c1438936074ecb26c4f67535893026f9dfdf8 100644
--- a/content/browser/streams/stream_handle_impl.cc
+++ b/content/browser/streams/stream_handle_impl.cc
@@ -30,7 +30,10 @@ StreamHandleImpl::StreamHandleImpl(
url_(stream->url()),
original_url_(original_url),
mime_type_(mime_type),
- response_headers_(response_headers),
+ // Make a copy of the response headers so it is safe to pass this across
+ // threads.
+ response_headers_(
+ new net::HttpResponseHeaders(response_headers->raw_headers())),
stream_message_loop_(base::MessageLoopProxy::current().get()) {}
StreamHandleImpl::~StreamHandleImpl() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698