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

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

Issue 11028131: Shift passage of FileStream in downloads system to be by scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Al's comments. Created 8 years, 2 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 | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_create_info.cc
diff --git a/content/browser/download/download_create_info.cc b/content/browser/download/download_create_info.cc
index 051bcccf04e68912fa1d51aa1098633088ed3a77..bef5aa4341aae98fc7d82095cf112361026b7d86 100644
--- a/content/browser/download/download_create_info.cc
+++ b/content/browser/download/download_create_info.cc
@@ -28,6 +28,7 @@ DownloadCreateInfo::DownloadCreateInfo(
transition_type(transition_type),
db_handle(0),
prompt_user_for_save_location(false),
+ save_info(new content::DownloadSaveInfo()),
request_bound_net_log(bound_net_log) {
}
@@ -39,7 +40,8 @@ DownloadCreateInfo::DownloadCreateInfo()
has_user_gesture(false),
transition_type(content::PAGE_TRANSITION_LINK),
db_handle(0),
- prompt_user_for_save_location(false) {
+ prompt_user_for_save_location(false),
+ save_info(new content::DownloadSaveInfo()) {
}
DownloadCreateInfo::~DownloadCreateInfo() {
@@ -49,14 +51,12 @@ std::string DownloadCreateInfo::DebugString() const {
return base::StringPrintf("{"
" download_id = %s"
" url = \"%s\""
- " save_info.file_path = \"%" PRFilePath "\""
" received_bytes = %" PRId64
" total_bytes = %" PRId64
" prompt_user_for_save_location = %c"
" }",
download_id.DebugString().c_str(),
url().spec().c_str(),
- save_info.file_path.value().c_str(),
received_bytes,
total_bytes,
prompt_user_for_save_location ? 'T' : 'F');
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698