| 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_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" |
| 11 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sour
ce.h" |
| 12 |
| 13 namespace ntp_snippets { |
| 14 class ContentSuggestionsService; |
| 15 } |
| 16 |
| 17 // Mediator for ContentSuggestions. Makes the interface between a |
| 18 // ntp_snippets::ContentSuggestionsService and the Objective-C services using |
| 19 // its data. |
| 20 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource> |
| 21 |
| 22 // Initialize the mediator with the |contentService| to mediate. |
| 23 - (instancetype)initWithContentService: |
| 24 (ntp_snippets::ContentSuggestionsService*)contentService |
| 25 NS_DESIGNATED_INITIALIZER; |
| 26 - (instancetype)init NS_UNAVAILABLE; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H
_ |
| OLD | NEW |