From 3d95e54652070dacfdb9188c3f6f48111bcc007e Mon Sep 17 00:00:00 2001 From: "benjhayden@chromium.org" Date: Tue, 20 Nov 2012 00:52:08 +0000 Subject: 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 --- net/base/net_log_event_type_list.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'net') diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h index bbbbcdc..d564e08 100644 --- a/net/base/net_log_event_type_list.h +++ b/net/base/net_log_event_type_list.h @@ -1560,6 +1560,8 @@ EVENT_TYPE(DOWNLOAD_URL_REQUEST) // } // The END event will occur when the download is interrupted, canceled or // completed. +// DownloadItems that are loaded from history and are never active simply ADD +// one of these events. EVENT_TYPE(DOWNLOAD_ITEM_ACTIVE) // This event is created when a download item has been checked by the @@ -1570,13 +1572,6 @@ EVENT_TYPE(DOWNLOAD_ITEM_ACTIVE) // } EVENT_TYPE(DOWNLOAD_ITEM_SAFETY_STATE_UPDATED) -// This event is created when a download item has been inserted into the -// history database. -// { -// "db_handle": , -// } -EVENT_TYPE(DOWNLOAD_ITEM_IN_HISTORY) - // This event is created when a download item is updated. // { // "bytes_so_far": , -- cgit v1.1