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

Unified Diff: chrome/browser/history/history_backend.h

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r168573 Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_backend.h
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h
index 399257aecd12eaa703fe9e435cee61d6d3396995..d0a7f11d9ce5bab52dc3cfeb6a6e13de4b02c6b9 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -29,17 +29,15 @@ class BookmarkService;
class TestingProfile;
struct ThumbnailScore;
-namespace content {
-struct DownloadPersistentStoreInfo;
-}
-
namespace history {
#if defined(OS_ANDROID)
class AndroidProviderBackend;
#endif
+
class CommitLaterTask;
class HistoryPublisher;
class VisitFilter;
+struct DownloadRow;
// The maximum number of icons URLs per page which can be stored in the
// thumbnail database.
@@ -308,15 +306,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
void CleanUpInProgressEntries();
- void UpdateDownload(const content::DownloadPersistentStoreInfo& data);
- void UpdateDownloadPath(const FilePath& path, int64 db_handle);
+ void UpdateDownload(const DownloadRow& data);
void CreateDownload(scoped_refptr<DownloadCreateRequest> request,
- int32 id,
- const content::DownloadPersistentStoreInfo& info);
- void RemoveDownload(int64 db_handle);
- void RemoveDownloadsBetween(const base::Time remove_begin,
- const base::Time remove_end);
- void RemoveDownloads(const base::Time remove_end);
+ const DownloadRow& info);
+ void RemoveDownloads(const std::set<int64>& db_handles);
// Segment usage -------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698