Commit 2d6463e4 authored by sdefresne's avatar sdefresne Committed by Commit bot

Remove last dependency of HistoryService on //content

Introduce a local typedef for the DownloadIdCallback type since it
is really simple.

Remove obsolete #includes.

BUG=453790

Review URL: https://codereview.chromium.org/888983003

Cr-Commit-Position: refs/heads/master@{#314570}
parent 077d410f
......@@ -5,7 +5,6 @@
#include "chrome/browser/history/android/android_provider_backend.h"
#include "base/i18n/case_conversion.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/history/android/bookmark_model_sql_handler.h"
#include "chrome/browser/history/history_backend.h"
#include "components/history/core/browser/android/android_time.h"
......
......@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
......
......@@ -741,8 +741,7 @@ void HistoryService::CreateDownload(
callback);
}
void HistoryService::GetNextDownloadId(
const content::DownloadIdCallback& callback) {
void HistoryService::GetNextDownloadId(const DownloadIdCallback& callback) {
DCHECK(thread_) << "History service being called after cleanup";
DCHECK(thread_checker_.CalledOnValidThread());
PostTaskAndReplyWithResult(
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment