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

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: . Created 8 years, 3 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 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 deeab63afb54d32c4e4a59a834a841e144d5bd4a..001100c24b92cd9216d0efbe89ebd632dc22202a 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -27,11 +27,8 @@
class BookmarkService;
class TestingProfile;
-struct ThumbnailScore;
-
-namespace content {
struct DownloadPersistentStoreInfo;
-}
+struct ThumbnailScore;
namespace history {
#if defined(OS_ANDROID)
@@ -306,17 +303,15 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
// Downloads -----------------------------------------------------------------
void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
- void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
+ void QueryDownloads(const HistoryService::DownloadQueryCallback& callback);
void CleanUpInProgressEntries();
- void UpdateDownload(const content::DownloadPersistentStoreInfo& data);
- void UpdateDownloadPath(const FilePath& path, int64 db_handle);
- 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);
+ void UpdateDownload(const DownloadPersistentStoreInfo& data);
+ void CreateDownload(const DownloadPersistentStoreInfo& info,
+ const HistoryService::DownloadCreateCallback& callback);
+ void GetVisibleVisitCountToHostSimple(
+ const GURL& url,
+ const HistoryService::GetVisibleVisitCountToHostSimpleCallback& callback);
+ void RemoveDownloads(const std::set<int64>& handles);
// Segment usage -------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698