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

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

Issue 2736653002: Suggested Articles can be dismissed (Closed)
Patch Set: Cleanup 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_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_
6 #define IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_ 6 #define IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" 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" 11 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sour ce.h"
12 12
13 namespace ntp_snippets { 13 namespace ntp_snippets {
14 class ContentSuggestionsService; 14 class ContentSuggestionsService;
15 } 15 }
16 16
17 @class ContentSuggestionIdentifier;
18
17 // Mediator for ContentSuggestions. Makes the interface between a 19 // Mediator for ContentSuggestions. Makes the interface between a
18 // ntp_snippets::ContentSuggestionsService and the Objective-C services using 20 // ntp_snippets::ContentSuggestionsService and the Objective-C services using
19 // its data. 21 // its data.
20 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource> 22 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource>
21 23
22 // Initialize the mediator with the |contentService| to mediate. 24 // Initialize the mediator with the |contentService| to mediate.
23 - (instancetype)initWithContentService: 25 - (instancetype)initWithContentService:
24 (ntp_snippets::ContentSuggestionsService*)contentService 26 (ntp_snippets::ContentSuggestionsService*)contentService
25 NS_DESIGNATED_INITIALIZER; 27 NS_DESIGNATED_INITIALIZER;
26 - (instancetype)init NS_UNAVAILABLE; 28 - (instancetype)init NS_UNAVAILABLE;
27 29
30 - (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier;
lpromero 2017/03/06 10:29:00 Add a comment that UI code calls this to remove th
gambard 2017/03/06 12:16:00 It should not be ambiguous as the mediator does no
31
28 @end 32 @end
29 33
30 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H _ 34 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698