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

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

Issue 2284393002: Add ClearHistory() to ContentSuggestionsService and its providers (Closed)
Patch Set: msramek@'s comments and filter. Created 4 years, 3 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 static void RegisterProfilePrefs(PrefRegistrySimple* registry); 47 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
48 48
49 private: 49 private:
50 // ContentSuggestionsProvider implementation. 50 // ContentSuggestionsProvider implementation.
51 CategoryStatus GetCategoryStatus(Category category) override; 51 CategoryStatus GetCategoryStatus(Category category) override;
52 CategoryInfo GetCategoryInfo(Category category) override; 52 CategoryInfo GetCategoryInfo(Category category) override;
53 void DismissSuggestion(const std::string& suggestion_id) override; 53 void DismissSuggestion(const std::string& suggestion_id) override;
54 void FetchSuggestionImage(const std::string& suggestion_id, 54 void FetchSuggestionImage(const std::string& suggestion_id,
55 const ImageFetchedCallback& callback) override; 55 const ImageFetchedCallback& callback) override;
56 void ClearHistory(base::Time begin,
57 base::Time end,
58 base::Callback<bool(const GURL& url)> filter) override;
56 void ClearCachedSuggestions(Category category) override; 59 void ClearCachedSuggestions(Category category) override;
57 void GetDismissedSuggestionsForDebugging( 60 void GetDismissedSuggestionsForDebugging(
58 Category category, 61 Category category,
59 const DismissedSuggestionsCallback& callback) override; 62 const DismissedSuggestionsCallback& callback) override;
60 void ClearDismissedSuggestionsForDebugging(Category category) override; 63 void ClearDismissedSuggestionsForDebugging(Category category) override;
61 64
62 // OfflinePageModel::Observer implementation. 65 // OfflinePageModel::Observer implementation.
63 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; 66 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override;
64 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; 67 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override;
65 void OfflinePageDeleted(int64_t offline_id, 68 void OfflinePageDeleted(int64_t offline_id,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Whether the Download Manager UI is enabled, in which case the More button 125 // Whether the Download Manager UI is enabled, in which case the More button
123 // for the Downloads section can redirect there. 126 // for the Downloads section can redirect there.
124 const bool download_manager_ui_enabled_; 127 const bool download_manager_ui_enabled_;
125 128
126 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); 129 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider);
127 }; 130 };
128 131
129 } // namespace ntp_snippets 132 } // namespace ntp_snippets
130 133
131 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_ 134 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698