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

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

Issue 2751713002: Fetch Suggestions by category (Closed)
Patch Set: Add comment 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
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_SOURC E_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURC E_H_
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURC E_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SOURC E_H_
7 7
8 @class ContentSuggestion; 8 @class ContentSuggestion;
9 @protocol ContentSuggestionsDataSink; 9 @protocol ContentSuggestionsDataSink;
10 @protocol ContentSuggestionsImageFetcher; 10 @protocol ContentSuggestionsImageFetcher;
11 @class ContentSuggestionsSectionInformation;
stkhapugin 2017/03/14 15:25:12 move to line 9 to group @class
gambard 2017/03/14 16:05:30 Done.
11 12
12 // DataSource for the content suggestions. Provides the suggestions data in a 13 // DataSource for the content suggestions. Provides the suggestions data in a
13 // format compatible with Objective-C. 14 // format compatible with Objective-C.
14 @protocol ContentSuggestionsDataSource 15 @protocol ContentSuggestionsDataSource
15 16
16 // The data sink that will be notified when the data change. 17 // The data sink that will be notified when the data change.
17 @property(nonatomic, weak) id<ContentSuggestionsDataSink> dataSink; 18 @property(nonatomic, weak) id<ContentSuggestionsDataSink> dataSink;
18 19
19 // Returns all the data currently available. Returns an empty array if nothing 20 // Returns all the data currently available. Returns an empty array if nothing
20 // is available. 21 // is available.
21 - (NSArray<ContentSuggestion*>*)allSuggestions; 22 - (NSArray<ContentSuggestion*>*)allSuggestions;
22 23
24 // Returns the data currently available for the section identified by
25 // |sectionInfo|. Returns an empty array if nothing is available.
26 - (NSArray<ContentSuggestion*>*)suggestionsForSection:
stkhapugin 2017/03/14 15:25:12 Consider nullability identifiers in this section :
gambard 2017/03/14 16:05:30 Done :)
27 (ContentSuggestionsSectionInformation*)sectionInfo;
28
23 // Returns an image updater for the suggestions provided by this data source. 29 // Returns an image updater for the suggestions provided by this data source.
24 - (id<ContentSuggestionsImageFetcher>)imageFetcher; 30 - (id<ContentSuggestionsImageFetcher>)imageFetcher;
25 31
26 @end 32 @end
27 33
28 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SO URCE_H_ 34 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SO URCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698