diff options
author | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-06 09:46:31 +0000 |
---|---|---|
committer | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-06 09:46:31 +0000 |
commit | e89898ab462cf1deda86cbde4d5adb71ce516295 (patch) | |
tree | 9c2947c007c750364070879e29e48af9a199c705 /chrome/browser/history/history_backend.h | |
parent | 0989186ea6382bfbcaacb5f8688fe8771cfc3924 (diff) | |
download | chromium_src-e89898ab462cf1deda86cbde4d5adb71ce516295.zip chromium_src-e89898ab462cf1deda86cbde4d5adb71ce516295.tar.gz chromium_src-e89898ab462cf1deda86cbde4d5adb71ce516295.tar.bz2 |
History: Create delete directives when local or remote history is deleted.
In order to support offline deletion of synced history entries, create a
delete directive whenever entries are deleted from the history page. The
directives will be synced to other clients, ensuring that it's possible
to delete remove history entries even when the history server cannot be
reached. This CL only creates delete directives when specific visits are
deleted, not for time range deletions from the Clear Browsing Data dialog.
This also adds a new HistoryEntry type, which can represent either a local
or remote history entry. Compared to using DictionaryValue, this is a much
better format for processing the entries before they are returned to the
history front-end. This will also make it easier to push the parsing of
the history server's JSON response into web_history_service.cc.
BUG=171693
Review URL: https://codereview.chromium.org/12319093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history_backend.h')
-rw-r--r-- | chrome/browser/history/history_backend.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h index ff3328e..5df4d1c 100644 --- a/chrome/browser/history/history_backend.h +++ b/chrome/browser/history/history_backend.h @@ -445,6 +445,11 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // Calls ExpireHistoryBackend::ExpireHistoryForTimes and commits the change. void ExpireHistoryForTimes(const std::vector<base::Time>& times); + // Calls ExpireHistoryBetween() once for each element in the vector. + // The fields of |ExpireHistoryArgs| map directly to the arguments of + // of ExpireHistoryBetween(). + void ExpireHistory(const std::vector<ExpireHistoryArgs>& expire_list); + // Bookmarks ----------------------------------------------------------------- // Notification that a URL is no longer bookmarked. If there are no visits |