summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_item_factory.h
diff options
context:
space:
mode:
authorbenjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 00:52:08 +0000
committerbenjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-20 00:52:08 +0000
commit3d95e54652070dacfdb9188c3f6f48111bcc007e (patch)
tree7ad31f4dbdb170fc30cc00ce2b31d76ce146799d /content/browser/download/download_item_factory.h
parent8b9d8f76949307b91f6399d452e41de59f2cbce6 (diff)
downloadchromium_src-3d95e54652070dacfdb9188c3f6f48111bcc007e.zip
chromium_src-3d95e54652070dacfdb9188c3f6f48111bcc007e.tar.gz
chromium_src-3d95e54652070dacfdb9188c3f6f48111bcc007e.tar.bz2
Make DownloadHistory observe manager, items
Rip out half of DownloadManagerDelegate. Make DownloadManager create persisted DownloadItems one at a time and return them to DownloadHistory. Move DownloadPersistentStoreInfo from content to chrome. Kill DownloadDatabase::CheckThread(). (Leftover from 85408.) Change DownloadDatabase::RemoveDownloads() to take an explicit set of db_handles. Merge DownloadDatabase::UpdateDownload[Path](). After this CL, I'll send out another one to remove the usage of CancelableRequest from the downloads-specific HistoryService APIs. BUG=154309 Review URL: https://chromiumcodereview.appspot.com/10915180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_item_factory.h')
-rw-r--r--content/browser/download/download_item_factory.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/content/browser/download/download_item_factory.h b/content/browser/download/download_item_factory.h
index 500f491..e16163a 100644
--- a/content/browser/download/download_item_factory.h
+++ b/content/browser/download/download_item_factory.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/download_id.h"
+#include "content/public/browser/download_item.h"
class FilePath;
class GURL;
@@ -28,7 +29,6 @@ class DownloadItemImpl;
class DownloadItemImplDelegate;
class DownloadRequestHandleInterface;
struct DownloadCreateInfo;
-struct DownloadPersistentStoreInfo;
class DownloadItemFactory {
public:
@@ -37,7 +37,15 @@ public:
virtual DownloadItemImpl* CreatePersistedItem(
DownloadItemImplDelegate* delegate,
DownloadId download_id,
- const DownloadPersistentStoreInfo& info,
+ const FilePath& path,
+ const GURL& url,
+ const GURL& referrer_url,
+ const base::Time& start_time,
+ const base::Time& end_time,
+ int64 received_bytes,
+ int64 total_bytes,
+ content::DownloadItem::DownloadState state,
+ bool opened,
const net::BoundNetLog& bound_net_log) = 0;
virtual DownloadItemImpl* CreateActiveItem(