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

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

Issue 2292003002: Move OnURLsDeleted from NTPSnippetsService to ContentSuggestionsService (Closed)
Patch Set: 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 private: 49 private:
50 friend class OfflinePageSuggestionsProviderTest; 50 friend class OfflinePageSuggestionsProviderTest;
51 51
52 // ContentSuggestionsProvider implementation. 52 // ContentSuggestionsProvider implementation.
53 CategoryStatus GetCategoryStatus(Category category) override; 53 CategoryStatus GetCategoryStatus(Category category) override;
54 CategoryInfo GetCategoryInfo(Category category) override; 54 CategoryInfo GetCategoryInfo(Category category) override;
55 void DismissSuggestion(const std::string& suggestion_id) override; 55 void DismissSuggestion(const std::string& suggestion_id) override;
56 void FetchSuggestionImage(const std::string& suggestion_id, 56 void FetchSuggestionImage(const std::string& suggestion_id,
57 const ImageFetchedCallback& callback) override; 57 const ImageFetchedCallback& callback) override;
58 void RemoveURLsFromHistory(bool all_history,
59 const std::vector<GURL>& deleted_urls) override;
58 void ClearHistory( 60 void ClearHistory(
59 base::Time begin, 61 base::Time begin,
60 base::Time end, 62 base::Time end,
61 const base::Callback<bool(const GURL& url)>& filter) override; 63 const base::Callback<bool(const GURL& url)>& filter) override;
62 void ClearCachedSuggestions(Category category) override; 64 void ClearCachedSuggestions(Category category) override;
63 void GetDismissedSuggestionsForDebugging( 65 void GetDismissedSuggestionsForDebugging(
64 Category category, 66 Category category,
65 const DismissedSuggestionsCallback& callback) override; 67 const DismissedSuggestionsCallback& callback) override;
66 void ClearDismissedSuggestionsForDebugging(Category category) override; 68 void ClearDismissedSuggestionsForDebugging(Category category) override;
67 69
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Whether the Download Manager UI is enabled, in which case the More button 130 // Whether the Download Manager UI is enabled, in which case the More button
129 // for the Downloads section can redirect there. 131 // for the Downloads section can redirect there.
130 const bool download_manager_ui_enabled_; 132 const bool download_manager_ui_enabled_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider); 134 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProvider);
133 }; 135 };
134 136
135 } // namespace ntp_snippets 137 } // namespace ntp_snippets
136 138
137 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_ 139 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGE_SUGGESTIONS_PROVID ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698