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

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

Issue 888983003: Remove last dependency of HistoryService on //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@visitedlink
Patch Set: Rebase Created 5 years, 11 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_service.h
diff --git a/chrome/browser/history/history_service.h b/chrome/browser/history/history_service.h
index c14dafc4231a1b1fc917df61fe56fc167bde56a1..b167f434dea9522e9189745874921ab7ad998fd6 100644
--- a/chrome/browser/history/history_service.h
+++ b/chrome/browser/history/history_service.h
@@ -24,13 +24,11 @@
#include "base/time/time.h"
#include "chrome/browser/history/delete_directive_handler.h"
#include "chrome/browser/history/typed_url_syncable_service.h"
-#include "chrome/common/ref_counted_util.h"
#include "components/favicon_base/favicon_callback.h"
#include "components/history/core/browser/history_client.h"
#include "components/history/core/browser/keyword_id.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/visitedlink/browser/visitedlink_delegate.h"
-#include "content/public/browser/download_manager_delegate.h"
#include "sql/init_status.h"
#include "sync/api/syncable_service.h"
#include "ui/base/page_transition_types.h"
@@ -379,9 +377,13 @@ class HistoryService : public syncer::SyncableService,
const history::DownloadRow& info,
const DownloadCreateCallback& callback);
+ // Implemented by the caller of 'GetNextDownloadId' below, and is called with
+ // the maximum id of all downloads records in the database plus 1.
+ typedef base::Callback<void(uint32)> DownloadIdCallback;
+
// Responds on the calling thread with the maximum id of all downloads records
// in the database plus 1.
- void GetNextDownloadId(const content::DownloadIdCallback& callback);
+ void GetNextDownloadId(const DownloadIdCallback& callback);
// Implemented by the caller of 'QueryDownloads' below, and is called when the
// history service has retrieved a list of all download state. The call
« no previous file with comments | « chrome/browser/history/android/bookmark_model_sql_handler.cc ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698