Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3b535d6283a0d973fe3f79179257966dbe04ead9 |
| --- /dev/null |
| +++ b/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ |
| +#define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ |
| + |
| +#include <memory> |
| +#include <vector> |
| + |
| +#include "base/macros.h" |
| +#include "base/time/time.h" |
| +#include "components/bookmarks/browser/bookmark_model.h" |
| +#include "components/bookmarks/browser/bookmark_node.h" |
| + |
| +namespace ntp_snippets { |
| + |
| +// |
|
Marc Treib
2016/07/29 14:36:43
Comment?
jkrcal
2016/07/29 15:34:07
Done.
|
| +void UpdateBookmarkOnURLVisitedInMainFrame( |
| + bookmarks::BookmarkModel* bookmark_model, |
| + const GURL& url); |
| + |
| +base::Time GetLastVisitDateForBookmark( |
| + const bookmarks::BookmarkNode* node); |
| + |
| +std::vector<const bookmarks::BookmarkNode*> GetRecentlyVisitedBookmarks( |
| + bookmarks::BookmarkModel* bookmark_model, |
| + int max_count, |
| + const base::Time& min_visit_time); |
| + |
| +} // namespace ntp_snippets |
| + |
| +#endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ |