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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h

Issue 2739153002: Reload all ContentSuggestions on notification (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_ H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_ H_
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_ H_ 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SINK_ H_
7 7
8 @class ContentSuggestionIdentifier; 8 @class ContentSuggestionIdentifier;
9 9
10 // Data sink for the ContentSuggestions. It will be notified when new data needs 10 // Data sink for the ContentSuggestions. It will be notified when new data needs
11 // to be pulled. 11 // to be pulled.
12 @protocol ContentSuggestionsDataSink 12 @protocol ContentSuggestionsDataSink
13 13
14 // Notifies the Data Sink that new data is available. 14 // Notifies the Data Sink that new data is available.
15 - (void)dataAvailable; 15 - (void)dataAvailable;
16 16
17 // The suggestion associated with |suggestionIdentifier| has been invalidated by 17 // The suggestion associated with |suggestionIdentifier| has been invalidated by
18 // the backend data source and should be cleared now. This is why this method is 18 // the backend data source and should be cleared now. This is why this method is
19 // about the data source pushing something to the data sink. 19 // about the data source pushing something to the data sink.
20 - (void)clearSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier; 20 - (void)clearSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier;
21 21
22 // Notifies the Data Sink that it must remove all current data and reload new
23 // ones.
24 - (void)reloadAllData;
25
22 @end 26 @end
23 27
24 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SI NK_H_ 28 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SI NK_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698