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

Unified Diff: chrome/browser/renderer_host/download_resource_handler.cc

Issue 6932046: Added DownloadProcessHandle class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments. Created 9 years, 7 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 | « chrome/browser/history/download_create_info.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/download_resource_handler.cc
diff --git a/chrome/browser/renderer_host/download_resource_handler.cc b/chrome/browser/renderer_host/download_resource_handler.cc
index 7b7e02fabb9ec35111f5723510a132b60d0206f7..bbcab267af177545aa03baa4eea83b7c76670b29 100644
--- a/chrome/browser/renderer_host/download_resource_handler.cc
+++ b/chrome/browser/renderer_host/download_resource_handler.cc
@@ -12,6 +12,7 @@
#include "base/stringprintf.h"
#include "chrome/browser/download/download_item.h"
#include "chrome/browser/download/download_file_manager.h"
+#include "chrome/browser/download/download_process_handle.h"
#include "chrome/browser/download/download_util.h"
#include "chrome/browser/history/download_create_info.h"
#include "content/browser/browser_thread.h"
@@ -88,9 +89,9 @@ bool DownloadResourceHandler::OnResponseStarted(int request_id,
info->state = DownloadItem::IN_PROGRESS;
info->download_id = download_id_;
info->has_user_gesture = request_info->has_user_gesture();
- info->child_id = global_id_.child_id;
- info->render_view_id = render_view_id_;
- info->request_id = global_id_.request_id;
+ info->process_handle = DownloadProcessHandle(global_id_.child_id,
+ render_view_id_,
+ global_id_.request_id);
info->content_disposition = content_disposition_;
info->mime_type = response->response_head.mime_type;
// TODO(ahendrickson) -- Get the last modified time and etag, so we can
« no previous file with comments | « chrome/browser/history/download_create_info.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698