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