Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h

Issue 2184263005: Add a tab helper to record the last visit date for each bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments #1 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698