| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // happen before the Bookmark model gets loaded. | 88 // happen before the Bookmark model gets loaded. |
| 89 void FetchBookmarks(); | 89 void FetchBookmarks(); |
| 90 | 90 |
| 91 // Updates the |category_status_| and notifies the |observer_|, if necessary. | 91 // Updates the |category_status_| and notifies the |observer_|, if necessary. |
| 92 void NotifyStatusChanged(CategoryStatus new_status); | 92 void NotifyStatusChanged(CategoryStatus new_status); |
| 93 | 93 |
| 94 CategoryStatus category_status_; | 94 CategoryStatus category_status_; |
| 95 const Category provided_category_; | 95 const Category provided_category_; |
| 96 bookmarks::BookmarkModel* bookmark_model_; | 96 bookmarks::BookmarkModel* bookmark_model_; |
| 97 bool fetch_requested_; | 97 bool fetch_requested_; |
| 98 // Is there any visit data for bookmarks available? |
| 99 bool no_visit_data_; |
| 98 | 100 |
| 99 base::Time node_to_change_last_visit_date_; | 101 base::Time node_to_change_last_visit_date_; |
| 100 base::Time end_of_list_last_visit_date_; | 102 base::Time end_of_list_last_visit_date_; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); | 104 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace ntp_snippets | 107 } // namespace ntp_snippets |
| 106 | 108 |
| 107 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ | 109 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ |
| OLD | NEW |