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

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

Issue 2638413006: Add ContentSuggestionsMediator (Closed)
Patch Set: Rebase Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 @protocol ContentSuggestionsData;
9
10 // DataSource for the content suggestions. Provides the suggestions data in a
11 // format compatible with objective-c.
12 @protocol ContentSuggestionsDataSource
13
14 // The data sink that will be notified when the data change.
15 @property(nonatomic, weak) id<ContentSuggestionsDataSink> dataSink;
16
17 // Returns all the data currently available.
18 - (NSArray<id<ContentSuggestionsData>>*)getData;
19
20 // Returns the new data.
21 - (NSArray<id<ContentSuggestionsData>>*)getMoreData;
22
23 @end
24
25 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SO URCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698