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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 10416003: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more fix Created 8 years, 6 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/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 2e4f6f0ea5599a8ac8f061353e46e641b9d630bd..eda416f5174794b0385e7db72835c61abc9d7b66 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -136,7 +136,7 @@ bool DownloadResourceHandler::OnResponseStarted(
request_->GetResponseHeaderByName("content-disposition",
&content_disposition);
SetContentDisposition(content_disposition);
- SetContentLength(response->content_length);
+ SetContentLength(response->head.content_length);
const ResourceRequestInfoImpl* request_info =
ResourceRequestInfoImpl::ForRequest(request_);
@@ -164,7 +164,7 @@ bool DownloadResourceHandler::OnResponseStarted(
info->state = DownloadItem::IN_PROGRESS;
info->has_user_gesture = request_info->HasUserGesture();
info->content_disposition = content_disposition_;
- info->mime_type = response->mime_type;
+ info->mime_type = response->head.mime_type;
info->remote_address = request_->GetSocketAddress().host();
download_stats::RecordDownloadMimeType(info->mime_type);
@@ -184,15 +184,14 @@ bool DownloadResourceHandler::OnResponseStarted(
}
std::string content_type_header;
- if (!response->headers ||
- !response->headers->GetMimeType(&content_type_header))
+ if (!response->head.headers ||
+ !response->head.headers->GetMimeType(&content_type_header))
content_type_header = "";
info->original_mime_type = content_type_header;
- if (!response->headers ||
- !response->headers->EnumerateHeader(NULL,
- "Accept-Ranges",
- &accept_ranges_)) {
+ if (!response->head.headers ||
+ !response->head.headers->EnumerateHeader(
+ NULL, "Accept-Ranges", &accept_ranges_)) {
accept_ranges_ = "";
}
« no previous file with comments | « content/browser/debugger/devtools_netlog_observer.cc ('k') | content/browser/renderer_host/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698