| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 std::vector<Category> GetProvidedCategories() override; | 46 std::vector<Category> GetProvidedCategories() override; |
| 47 CategoryStatus GetCategoryStatus(Category category) override; | 47 CategoryStatus GetCategoryStatus(Category category) override; |
| 48 CategoryInfo GetCategoryInfo(Category category) override; | 48 CategoryInfo GetCategoryInfo(Category category) override; |
| 49 void DismissSuggestion(const std::string& suggestion_id) override; | 49 void DismissSuggestion(const std::string& suggestion_id) override; |
| 50 void FetchSuggestionImage(const std::string& suggestion_id, | 50 void FetchSuggestionImage(const std::string& suggestion_id, |
| 51 const ImageFetchedCallback& callback) override; | 51 const ImageFetchedCallback& callback) override; |
| 52 void ClearCachedSuggestionsForDebugging(Category category) override; | 52 void ClearCachedSuggestionsForDebugging(Category category) override; |
| 53 std::vector<ContentSuggestion> GetDismissedSuggestionsForDebugging( | 53 void GetDismissedSuggestionsForDebugging( |
| 54 Category category) override; | 54 Category category, |
| 55 const DismissedSuggestionsCallback& callback) override; |
| 55 void ClearDismissedSuggestionsForDebugging(Category category) override; | 56 void ClearDismissedSuggestionsForDebugging(Category category) override; |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 void NotifyStatusChanged(CategoryStatus new_status); | 59 void NotifyStatusChanged(CategoryStatus new_status); |
| 59 | 60 |
| 60 CategoryStatus category_status_; | 61 CategoryStatus category_status_; |
| 61 const Category provided_category_; | 62 const Category provided_category_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(PhysicalWebPageSuggestionsProvider); | 64 DISALLOW_COPY_AND_ASSIGN(PhysicalWebPageSuggestionsProvider); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace ntp_snippets | 67 } // namespace ntp_snippets |
| 67 | 68 |
| 68 #endif // COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTI
ONS_PROVIDER_H_ | 69 #endif // COMPONENTS_NTP_SNIPPETS_PHYSICAL_WEB_PAGES_PHYSICAL_WEB_PAGE_SUGGESTI
ONS_PROVIDER_H_ |
| OLD | NEW |