OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ | |
6 #define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ | |
7 | |
8 #include <memory> | |
9 #include <vector> | |
10 | |
11 #include "base/macros.h" | |
12 #include "base/time/time.h" | |
13 #include "components/bookmarks/browser/bookmark_model.h" | |
14 #include "components/bookmarks/browser/bookmark_node.h" | |
15 | |
16 namespace ntp_snippets { | |
17 | |
18 // | |
Marc Treib
2016/07/29 14:36:43
Comment?
jkrcal
2016/07/29 15:34:07
Done.
| |
19 void UpdateBookmarkOnURLVisitedInMainFrame( | |
20 bookmarks::BookmarkModel* bookmark_model, | |
21 const GURL& url); | |
22 | |
23 base::Time GetLastVisitDateForBookmark( | |
24 const bookmarks::BookmarkNode* node); | |
25 | |
26 std::vector<const bookmarks::BookmarkNode*> GetRecentlyVisitedBookmarks( | |
27 bookmarks::BookmarkModel* bookmark_model, | |
28 int max_count, | |
29 const base::Time& min_visit_time); | |
30 | |
31 } // namespace ntp_snippets | |
32 | |
33 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_LAST_VISIT_UTILS_H_ | |
OLD | NEW |