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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearranged structures for greater consistency. 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 | Annotate | Revision Log
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_persistent_store_info.h" 5 #include "content/browser/download/download_persistent_store_info.h"
6 6
7 #include "content/browser/download/download_item.h" 7 #include "content/browser/download/download_item.h"
8 8
9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo() 9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
10 : received_bytes(0), 10 : received_bytes(0),
11 total_bytes(0), 11 total_bytes(0),
12 state(0), 12 state(0),
13 db_handle(0), 13 db_handle(0),
14 opened(false) { 14 opened(false),
15 last_reason(DOWNLOAD_INTERRUPT_REASON_NONE) {
15 } 16 }
16 17
17 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( 18 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
18 const FilePath& path, 19 const FilePath& path,
20 const FilePath& target,
19 const GURL& url, 21 const GURL& url,
20 const GURL& referrer, 22 const GURL& referrer,
21 const base::Time& start, 23 const base::Time& start,
22 const base::Time& end, 24 const base::Time& end,
23 int64 received, 25 int64 received,
24 int64 total, 26 int64 total,
25 int32 download_state, 27 int32 download_state,
26 int64 handle, 28 int64 handle,
27 bool download_opened) 29 bool download_opened,
30 const std::string& hash_state_pickle,
31 const std::string& last_modified,
32 const std::string& etag,
33 InterruptReason reason)
28 : path(path), 34 : path(path),
35 target_name(target),
29 url(url), 36 url(url),
30 referrer_url(referrer), 37 referrer_url(referrer),
31 start_time(start), 38 start_time(start),
32 end_time(end), 39 end_time(end),
33 received_bytes(received), 40 received_bytes(received),
34 total_bytes(total), 41 total_bytes(total),
35 state(download_state), 42 state(download_state),
36 db_handle(handle), 43 db_handle(handle),
37 opened(download_opened) { 44 opened(download_opened),
45 hash_state(hash_state_pickle),
46 last_modified_time(last_modified),
47 etag(etag),
48 last_reason(reason) {
38 } 49 }
39 50
40 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { 51 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {
41 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698