| OLD | NEW |
| 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_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/ui/ntp/google_landing_data_source.h" | 10 #import "ios/chrome/browser/ui/ntp/google_landing_data_source.h" |
| 11 | 11 |
| 12 @protocol GoogleLandingConsumer; | 12 @protocol GoogleLandingConsumer; |
| 13 @protocol OmniboxFocuser; | 13 @protocol OmniboxFocuser; |
| 14 @protocol UrlLoader; | 14 @protocol UrlLoader; |
| 15 class WebStateList; | |
| 16 | 15 |
| 17 namespace ios { | 16 namespace ios { |
| 18 class ChromeBrowserState; | 17 class ChromeBrowserState; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // A mediator object that provides various data sources for google landing. | 20 // A mediator object that provides various data sources for google landing. |
| 22 @interface GoogleLandingMediator : NSObject<GoogleLandingDataSource> | 21 @interface GoogleLandingMediator : NSObject<GoogleLandingDataSource> |
| 23 | 22 |
| 24 - (instancetype)initWithConsumer:(id<GoogleLandingConsumer>)consumer | 23 - (instancetype)initWithConsumer:(id<GoogleLandingConsumer>)consumer |
| 25 browserState:(ios::ChromeBrowserState*)browserState | 24 browserState:(ios::ChromeBrowserState*)browserState |
| 26 loader:(id<UrlLoader>)loader | 25 loader:(id<UrlLoader>)loader |
| 27 focuser:(id<OmniboxFocuser>)focuser | 26 focuser:(id<OmniboxFocuser>)focuser |
| 28 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate | 27 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate |
| 29 webStateList:(WebStateList*)webStateList | 28 tabModel:(TabModel*)tabModel NS_DESIGNATED_INITIALIZER; |
| 30 NS_DESIGNATED_INITIALIZER; | |
| 31 - (instancetype)init NS_UNAVAILABLE; | 29 - (instancetype)init NS_UNAVAILABLE; |
| 32 | 30 |
| 33 // Get the maximum number of sites shown. | 31 // Get the maximum number of sites shown. |
| 34 + (NSUInteger)maxSitesShown; | 32 + (NSUInteger)maxSitesShown; |
| 35 | 33 |
| 36 @end | 34 @end |
| 37 | 35 |
| 38 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ | 36 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_MEDIATOR_H_ |
| OLD | NEW |