| OLD | NEW |
| (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 @class ContentSuggestion; |
| 9 @protocol ContentSuggestionsDataSink; |
| 10 |
| 11 // DataSource for the content suggestions. Provides the suggestions data in a |
| 12 // format compatible with Objective-C. |
| 13 @protocol ContentSuggestionsDataSource |
| 14 |
| 15 // The data sink that will be notified when the data change. |
| 16 @property(nonatomic, weak) id<ContentSuggestionsDataSink> dataSink; |
| 17 |
| 18 // Returns all the data currently available. Returns an empty array if nothing |
| 19 // is available. |
| 20 - (NSArray<ContentSuggestion*>*)allSuggestions; |
| 21 |
| 22 @end |
| 23 |
| 24 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_DATA_SO
URCE_H_ |
| OLD | NEW |