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

Side by Side Diff: ios/chrome/browser/content_suggestions/content_suggestions_mediator.h

Issue 2638413006: Add ContentSuggestionsMediator (Closed)
Patch Set: Rebase Created 3 years, 10 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_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 @protocol ContentSuggestionsDataSink;
14
15 namespace ntp_snippets {
16 class ContentSuggestionsService;
17 }
18
19 // Mediator for ContentSuggestions. Makes the interface between a
20 // ntp_snippets::ContentSuggestionsService and the objective-c services using
21 // its data.
22 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource>
23
24 // Initialize the mediator with the |contentService| to mediate.
25 - (instancetype)initWithContentService:
26 (ntp_snippets::ContentSuggestionsService*)contentService
27 NS_DESIGNATED_INITIALIZER;
28 - (instancetype)init NS_UNAVAILABLE;
29
30 @end
31
32 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698