| Index: components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h
|
| diff --git a/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h b/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h
|
| index b022e8e3309b73a00a29861a9dfddd7129cd8b61..128a001273485c3a743964d766764dde44772f8e 100644
|
| --- a/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h
|
| +++ b/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include <vector>
|
|
|
| +#include "base/callback.h"
|
| +
|
| class GURL;
|
|
|
| namespace base {
|
| @@ -67,8 +69,13 @@ std::vector<const bookmarks::BookmarkNode*> GetRecentlyVisitedBookmarks(
|
| std::vector<const bookmarks::BookmarkNode*> GetDismissedBookmarksForDebugging(
|
| bookmarks::BookmarkModel* bookmark_model);
|
|
|
| -// Removes last visited date metadata for all bookmarks.
|
| -void RemoveAllLastVisitDates(bookmarks::BookmarkModel* bookmark_model);
|
| +// Removes last-visited data (incl. any other metadata managed by content
|
| +// suggestions) for bookmarks within the provided time range.
|
| +// TODO(tschumann): Implement URL filtering.
|
| +void RemoveLastVisitedDatesBetween(const base::Time& begin,
|
| + const base::Time& end,
|
| + base::Callback<bool(const GURL& url)> filter,
|
| + bookmarks::BookmarkModel* bookmark_model);
|
|
|
| } // namespace ntp_snippets
|
|
|
|
|