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

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

Issue 2811173002: Setup download internal directory (Closed)
Patch Set: fix browser test Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // File method ordering: Methods in this file are in the same order as 5 // File method ordering: Methods in this file are in the same order as
6 // in download_item_impl.h, with the following exception: The public 6 // in download_item_impl.h, with the following exception: The public
7 // interface Start is placed in chronological order with the other 7 // interface Start is placed in chronological order with the other
8 // (private) routines that together define a DownloadItem's state 8 // (private) routines that together define a DownloadItem's state
9 // transitions as the download progresses. See "Download progression 9 // transitions as the download progresses. See "Download progression
10 // cascade" later in this file. 10 // cascade" later in this file.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 content_disposition_(info.content_disposition), 220 content_disposition_(info.content_disposition),
221 mime_type_(info.mime_type), 221 mime_type_(info.mime_type),
222 original_mime_type_(info.original_mime_type), 222 original_mime_type_(info.original_mime_type),
223 remote_address_(info.remote_address), 223 remote_address_(info.remote_address),
224 total_bytes_(info.total_bytes), 224 total_bytes_(info.total_bytes),
225 last_reason_(info.result), 225 last_reason_(info.result),
226 start_tick_(base::TimeTicks::Now()), 226 start_tick_(base::TimeTicks::Now()),
227 state_(INITIAL_INTERNAL), 227 state_(INITIAL_INTERNAL),
228 start_time_(info.start_time), 228 start_time_(info.start_time),
229 delegate_(delegate), 229 delegate_(delegate),
230 is_temporary_(!info.save_info->file_path.empty()), 230 is_temporary_(!info.transient && !info.save_info->file_path.empty()),
231 transient_(info.transient), 231 transient_(info.transient),
232 last_modified_time_(info.last_modified), 232 last_modified_time_(info.last_modified),
233 etag_(info.etag), 233 etag_(info.etag),
234 net_log_(net_log), 234 net_log_(net_log),
235 weak_ptr_factory_(this) { 235 weak_ptr_factory_(this) {
236 delegate_->Attach(); 236 delegate_->Attach();
237 Init(true /* actively downloading */, SRC_ACTIVE_DOWNLOAD); 237 Init(true /* actively downloading */, SRC_ACTIVE_DOWNLOAD);
238 238
239 // Link the event sources. 239 // Link the event sources.
240 net_log_.AddEvent( 240 net_log_.AddEvent(
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 case RESUME_MODE_USER_CONTINUE: 2241 case RESUME_MODE_USER_CONTINUE:
2242 return "USER_CONTINUE"; 2242 return "USER_CONTINUE";
2243 case RESUME_MODE_USER_RESTART: 2243 case RESUME_MODE_USER_RESTART:
2244 return "USER_RESTART"; 2244 return "USER_RESTART";
2245 } 2245 }
2246 NOTREACHED() << "Unknown resume mode " << mode; 2246 NOTREACHED() << "Unknown resume mode " << mode;
2247 return "unknown"; 2247 return "unknown";
2248 } 2248 }
2249 2249
2250 } // namespace content 2250 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698