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_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTIONS
_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTIONS
_PROVIDER_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTIONS
_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTIONS
_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 ~PhysicalWebPageSuggestionsProvider() override; | 41 ~PhysicalWebPageSuggestionsProvider() override; |
42 | 42 |
43 void OnDisplayableUrlsChanged(const std::vector<UrlInfo>& urls); | 43 void OnDisplayableUrlsChanged(const std::vector<UrlInfo>& urls); |
44 | 44 |
45 // ContentSuggestionsProvider implementation. | 45 // ContentSuggestionsProvider implementation. |
46 CategoryStatus GetCategoryStatus(Category category) override; | 46 CategoryStatus GetCategoryStatus(Category category) override; |
47 CategoryInfo GetCategoryInfo(Category category) override; | 47 CategoryInfo GetCategoryInfo(Category category) override; |
48 void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override; | 48 void DismissSuggestion(const ContentSuggestion::ID& suggestion_id) override; |
49 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, | 49 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, |
50 const ImageFetchedCallback& callback) override; | 50 const ImageFetchedCallback& callback) override; |
51 void FetchMore(const Category& category, | 51 void Fetch(const Category& category, |
52 FetchedMoreCallback callback) override; | 52 std::set<std::string> known_suggestion_ids, |
| 53 FetchingCallback callback) override; |
53 void ClearHistory( | 54 void ClearHistory( |
54 base::Time begin, | 55 base::Time begin, |
55 base::Time end, | 56 base::Time end, |
56 const base::Callback<bool(const GURL& url)>& filter) override; | 57 const base::Callback<bool(const GURL& url)>& filter) override; |
57 void ClearCachedSuggestions(Category category) override; | 58 void ClearCachedSuggestions(Category category) override; |
58 void GetDismissedSuggestionsForDebugging( | 59 void GetDismissedSuggestionsForDebugging( |
59 Category category, | 60 Category category, |
60 const DismissedSuggestionsCallback& callback) override; | 61 const DismissedSuggestionsCallback& callback) override; |
61 void ClearDismissedSuggestionsForDebugging(Category category) override; | 62 void ClearDismissedSuggestionsForDebugging(Category category) override; |
62 | 63 |
63 private: | 64 private: |
64 void NotifyStatusChanged(CategoryStatus new_status); | 65 void NotifyStatusChanged(CategoryStatus new_status); |
65 | 66 |
66 CategoryStatus category_status_; | 67 CategoryStatus category_status_; |
67 const Category provided_category_; | 68 const Category provided_category_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(PhysicalWebPageSuggestionsProvider); | 70 DISALLOW_COPY_AND_ASSIGN(PhysicalWebPageSuggestionsProvider); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace ntp_snippets | 73 } // namespace ntp_snippets |
73 | 74 |
74 #endif // COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTI
ONS_PROVIDER_H_ | 75 #endif // COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTI
ONS_PROVIDER_H_ |
OLD | NEW |