diff options
author | benjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 22:56:03 +0000 |
---|---|---|
committer | benjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 22:56:03 +0000 |
commit | 7798731b524dd9578e0406139cfbeb4dec8bfc23 (patch) | |
tree | f32b4241500c7a68e31fe32328e15224f84a52bc /chrome/browser/history/history_backend.h | |
parent | b8573d58baab9c2bee01a9697f4dfe23caba652f (diff) | |
download | chromium_src-7798731b524dd9578e0406139cfbeb4dec8bfc23.zip chromium_src-7798731b524dd9578e0406139cfbeb4dec8bfc23.tar.gz chromium_src-7798731b524dd9578e0406139cfbeb4dec8bfc23.tar.bz2 |
Remove CancelableRequest from HistoryService::*Download*
These requests/methods do not need to be explicitly cancelled. The callbacks contain weak pointers to prevent use-after-frees.
PS1@r170004
BUG=155883
Review URL: https://chromiumcodereview.appspot.com/11280218
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history_backend.h')
-rw-r--r-- | chrome/browser/history/history_backend.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h index f494bc5..43d9d92 100644 --- a/chrome/browser/history/history_backend.h +++ b/chrome/browser/history/history_backend.h @@ -306,12 +306,12 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // Downloads ----------------------------------------------------------------- - void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); - void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); + void GetNextDownloadId(int* id); + void QueryDownloads(std::vector<DownloadRow>* rows); void CleanUpInProgressEntries(); void UpdateDownload(const DownloadRow& data); - void CreateDownload(scoped_refptr<DownloadCreateRequest> request, - const DownloadRow& info); + void CreateDownload(const history::DownloadRow& history_info, + int64* db_handle); void RemoveDownloads(const std::set<int64>& db_handles); // Segment usage ------------------------------------------------------------- |