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

Side by Side Diff: components/ntp_snippets/ntp_snippets_service.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NTP_SNIPPETS_SERVICE_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // (Re)schedules the periodic fetching of snippets. This is necessary because 133 // (Re)schedules the periodic fetching of snippets. This is necessary because
134 // the schedule depends on the time of day. 134 // the schedule depends on the time of day.
135 void RescheduleFetching(); 135 void RescheduleFetching();
136 136
137 // ContentSuggestionsProvider implementation 137 // ContentSuggestionsProvider implementation
138 CategoryStatus GetCategoryStatus(Category category) override; 138 CategoryStatus GetCategoryStatus(Category category) override;
139 CategoryInfo GetCategoryInfo(Category category) override; 139 CategoryInfo GetCategoryInfo(Category category) override;
140 void DismissSuggestion(const std::string& suggestion_id) override; 140 void DismissSuggestion(const std::string& suggestion_id) override;
141 void FetchSuggestionImage(const std::string& suggestion_id, 141 void FetchSuggestionImage(const std::string& suggestion_id,
142 const ImageFetchedCallback& callback) override; 142 const ImageFetchedCallback& callback) override;
143 void ClearHistory(base::Time begin,
144 base::Time end,
145 base::Callback<bool(const GURL& url)> filter) override;
143 void ClearCachedSuggestions(Category category) override; 146 void ClearCachedSuggestions(Category category) override;
144 void GetDismissedSuggestionsForDebugging( 147 void GetDismissedSuggestionsForDebugging(
145 Category category, 148 Category category,
146 const DismissedSuggestionsCallback& callback) override; 149 const DismissedSuggestionsCallback& callback) override;
147 void ClearDismissedSuggestionsForDebugging(Category category) override; 150 void ClearDismissedSuggestionsForDebugging(Category category) override;
148 151
149 // Returns the lists of suggestion hosts the snippets are restricted to. 152 // Returns the lists of suggestion hosts the snippets are restricted to.
150 std::set<std::string> GetSuggestionsHosts() const; 153 std::set<std::string> GetSuggestionsHosts() const;
151 154
152 // Returns the maximum number of snippets that will be shown at once. 155 // Returns the maximum number of snippets that will be shown at once.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 345
343 // Request throttler for limiting requests to thumbnail images. 346 // Request throttler for limiting requests to thumbnail images.
344 RequestThrottler thumbnail_requests_throttler_; 347 RequestThrottler thumbnail_requests_throttler_;
345 348
346 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); 349 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService);
347 }; 350 };
348 351
349 } // namespace ntp_snippets 352 } // namespace ntp_snippets
350 353
351 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 354 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698