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

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

Issue 2260783002: Make GetDismissedSuggestionsForDebugging asynchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace function pointer, use multiple if-continue 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
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 20 matching lines...) Expand all
31 31
32 private: 32 private:
33 // ContentSuggestionsProvider implementation. 33 // ContentSuggestionsProvider implementation.
34 std::vector<Category> GetProvidedCategories() override; 34 std::vector<Category> GetProvidedCategories() override;
35 CategoryStatus GetCategoryStatus(Category category) override; 35 CategoryStatus GetCategoryStatus(Category category) override;
36 CategoryInfo GetCategoryInfo(Category category) override; 36 CategoryInfo GetCategoryInfo(Category category) override;
37 void DismissSuggestion(const std::string& suggestion_id) override; 37 void DismissSuggestion(const std::string& suggestion_id) override;
38 void FetchSuggestionImage(const std::string& suggestion_id, 38 void FetchSuggestionImage(const std::string& suggestion_id,
39 const ImageFetchedCallback& callback) override; 39 const ImageFetchedCallback& callback) override;
40 void ClearCachedSuggestionsForDebugging(Category category) override; 40 void ClearCachedSuggestionsForDebugging(Category category) override;
41 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( 41 void GetDismissedSuggestionsForDebugging(
42 Category category) override; 42 Category category,
43 const DismissedSuggestionsCallback& callback) override;
43 void ClearDismissedSuggestionsForDebugging(Category category) override; 44 void ClearDismissedSuggestionsForDebugging(Category category) override;
44 45
45 // bookmarks::BookmarkModelObserver implementation. 46 // bookmarks::BookmarkModelObserver implementation.
46 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, 47 void BookmarkModelLoaded(bookmarks::BookmarkModel* model,
47 bool ids_reassigned) override; 48 bool ids_reassigned) override;
48 void OnWillChangeBookmarkMetaInfo( 49 void OnWillChangeBookmarkMetaInfo(
49 bookmarks::BookmarkModel* model, 50 bookmarks::BookmarkModel* model,
50 const bookmarks::BookmarkNode* node) override; 51 const bookmarks::BookmarkNode* node) override;
51 void BookmarkMetaInfoChanged(bookmarks::BookmarkModel* model, 52 void BookmarkMetaInfoChanged(bookmarks::BookmarkModel* model,
52 const bookmarks::BookmarkNode* node) override; 53 const bookmarks::BookmarkNode* node) override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 99
99 base::Time node_to_change_last_visit_date_; 100 base::Time node_to_change_last_visit_date_;
100 base::Time end_of_list_last_visit_date_; 101 base::Time end_of_list_last_visit_date_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider); 103 DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProvider);
103 }; 104 };
104 105
105 } // namespace ntp_snippets 106 } // namespace ntp_snippets
106 107
107 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_ 108 #endif // COMPONENTS_NTP_SNIPPETS_BOOKMARKS_BOOKMARK_SUGGESTIONS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698