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

Side by Side Diff: content/browser/download/download_resource_handler.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/download_resource_handler.h" 5 #include "content/browser/download/download_resource_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/metrics/stats_counters.h" 11 #include "base/metrics/stats_counters.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "content/browser/browser_thread.h"
14 #include "content/browser/download/download_buffer.h" 13 #include "content/browser/download/download_buffer.h"
15 #include "content/browser/download/download_create_info.h" 14 #include "content/browser/download/download_create_info.h"
16 #include "content/browser/download/download_file_manager.h" 15 #include "content/browser/download/download_file_manager.h"
17 #include "content/browser/download/download_item.h" 16 #include "content/browser/download/download_item.h"
18 #include "content/browser/download/download_request_handle.h" 17 #include "content/browser/download/download_request_handle.h"
19 #include "content/browser/download/download_request_handle.h" 18 #include "content/browser/download/download_request_handle.h"
20 #include "content/browser/download/download_stats.h" 19 #include "content/browser/download/download_stats.h"
21 #include "content/browser/download/interrupt_reasons.h" 20 #include "content/browser/download/interrupt_reasons.h"
22 #include "content/browser/renderer_host/global_request_id.h" 21 #include "content/browser/renderer_host/global_request_id.h"
23 #include "content/browser/renderer_host/resource_dispatcher_host.h" 22 #include "content/browser/renderer_host/resource_dispatcher_host.h"
24 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 23 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
25 #include "content/common/resource_response.h" 24 #include "content/common/resource_response.h"
25 #include "content/public/browser/browser_thread.h"
26 #include "net/base/io_buffer.h" 26 #include "net/base/io_buffer.h"
27 #include "net/base/net_errors.h" 27 #include "net/base/net_errors.h"
28 #include "net/http/http_response_headers.h" 28 #include "net/http/http_response_headers.h"
29 #include "net/url_request/url_request_context.h" 29 #include "net/url_request/url_request_context.h"
30 30
31 DownloadResourceHandler::DownloadResourceHandler( 31 DownloadResourceHandler::DownloadResourceHandler(
32 ResourceDispatcherHost* rdh, 32 ResourceDispatcherHost* rdh,
33 int render_process_host_id, 33 int render_process_host_id,
34 int render_view_id, 34 int render_view_id,
35 int request_id, 35 int request_id,
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 " render_view_id_ = " "%d" 293 " render_view_id_ = " "%d"
294 " save_info_.file_path = \"%" PRFilePath "\"" 294 " save_info_.file_path = \"%" PRFilePath "\""
295 " }", 295 " }",
296 request_->url().spec().c_str(), 296 request_->url().spec().c_str(),
297 download_id_.local(), 297 download_id_.local(),
298 global_id_.child_id, 298 global_id_.child_id,
299 global_id_.request_id, 299 global_id_.request_id,
300 render_view_id_, 300 render_view_id_,
301 save_info_.file_path.value().c_str()); 301 save_info_.file_path.value().c_str());
302 } 302 }
OLDNEW
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/download/drag_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698