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

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

Issue 2782613004: Add FaviconAttributesProvider to ContentSuggestions (Closed)
Patch Set: Rebase Created 3 years, 8 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 favicon {
14 class LargeIconService;
15 }
16
13 namespace ntp_snippets { 17 namespace ntp_snippets {
14 class ContentSuggestionsService; 18 class ContentSuggestionsService;
15 } 19 }
16 20
17 @class ContentSuggestionIdentifier; 21 @class ContentSuggestionIdentifier;
18 22
19 // Mediator for ContentSuggestions. Makes the interface between a 23 // Mediator for ContentSuggestions. Makes the interface between a
20 // ntp_snippets::ContentSuggestionsService and the Objective-C services using 24 // ntp_snippets::ContentSuggestionsService and the Objective-C services using
21 // its data. 25 // its data.
22 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource> 26 @interface ContentSuggestionsMediator : NSObject<ContentSuggestionsDataSource>
23 27
24 // Initialize the mediator with the |contentService| to mediate. 28 // Initialize the mediator with the |contentService| to mediate.
25 - (instancetype)initWithContentService: 29 - (instancetype)
26 (ntp_snippets::ContentSuggestionsService*)contentService 30 initWithContentService:(ntp_snippets::ContentSuggestionsService*)contentService
31 largeIconService:(favicon::LargeIconService*)largeIconService
27 NS_DESIGNATED_INITIALIZER; 32 NS_DESIGNATED_INITIALIZER;
28 - (instancetype)init NS_UNAVAILABLE; 33 - (instancetype)init NS_UNAVAILABLE;
29 34
30 // Dismisses the suggestion from the content suggestions service. It doesn't 35 // Dismisses the suggestion from the content suggestions service. It doesn't
31 // change the UI. 36 // change the UI.
32 - (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier; 37 - (void)dismissSuggestion:(ContentSuggestionIdentifier*)suggestionIdentifier;
33 38
34 @end 39 @end
35 40
36 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H _ 41 #endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_MEDIATOR_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698