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

Side by Side Diff: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h

Issue 2232783002: Support action button to fetch more content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippetsbridge
Patch Set: 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_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_
6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_ 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_ H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 ContentSuggestionsProvider::Observer* observer, 34 ContentSuggestionsProvider::Observer* observer,
35 CategoryFactory* category_factory, 35 CategoryFactory* category_factory,
36 offline_pages::OfflinePageModel* offline_page_model); 36 offline_pages::OfflinePageModel* offline_page_model);
37 ~OfflinePageSuggestionsProvider() override; 37 ~OfflinePageSuggestionsProvider() override;
38 38
39 private: 39 private:
40 // ContentSuggestionsProvider implementation. 40 // ContentSuggestionsProvider implementation.
41 std::vector<Category> GetProvidedCategories() override; 41 std::vector<Category> GetProvidedCategories() override;
42 CategoryStatus GetCategoryStatus(Category category) override; 42 CategoryStatus GetCategoryStatus(Category category) override;
43 CategoryInfo GetCategoryInfo(Category category) override; 43 CategoryInfo GetCategoryInfo(Category category) override;
44 void FetchMoreSuggestions(Category category) override;
44 void DismissSuggestion(const std::string& suggestion_id) override; 45 void DismissSuggestion(const std::string& suggestion_id) override;
45 void FetchSuggestionImage(const std::string& suggestion_id, 46 void FetchSuggestionImage(const std::string& suggestion_id,
46 const ImageFetchedCallback& callback) override; 47 const ImageFetchedCallback& callback) override;
47 void ClearCachedSuggestionsForDebugging(Category category) override; 48 void ClearCachedSuggestionsForDebugging(Category category) override;
48 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( 49 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging(
49 Category category) override; 50 Category category) override;
50 void ClearDismissedSuggestionsForDebugging(Category category) override; 51 void ClearDismissedSuggestionsForDebugging(Category category) override;
51 52
52 // OfflinePageModel::Observer implementation. 53 // OfflinePageModel::Observer implementation.
53 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; 54 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override;
(...skipping 16 matching lines...) Expand all
70 offline_pages::OfflinePageModel* offline_page_model_; 71 offline_pages::OfflinePageModel* offline_page_model_;
71 72
72 const Category provided_category_; 73 const Category provided_category_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); 75 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider);
75 }; 76 };
76 77
77 } // namespace ntp_snippets 78 } // namespace ntp_snippets
78 79
79 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_ 80 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698