Index: ios/chrome/browser/ui/ntp/google_landing_data_source.h |
diff --git a/ios/chrome/browser/ui/ntp/google_landing_data_source.h b/ios/chrome/browser/ui/ntp/google_landing_data_source.h |
index 73cc70dd243a911512ce401c2c04ef668daaa6dd..8487128d8937d4c1048e9ca54b691e9828d08b28 100644 |
--- a/ios/chrome/browser/ui/ntp/google_landing_data_source.h |
+++ b/ios/chrome/browser/ui/ntp/google_landing_data_source.h |
@@ -8,47 +8,16 @@ |
#import <Foundation/Foundation.h> |
#include "components/ntp_tiles/ntp_tile.h" |
-#include "components/ntp_tiles/tile_visual_type.h" |
-#import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" |
-#import "ios/chrome/browser/ui/url_loader.h" |
-#include "url/gurl.h" |
class ReadingListModel; |
class LargeIconCache; |
namespace favicon { |
class LargeIconService; |
} |
-@class TabModel; |
-@protocol WebToolbarDelegate; |
// DataSource for the google landing controller. |
// TODO(crbug.com/694750): Most everything here can be moved to dispatcher. |
-@protocol GoogleLandingDataSource<OmniboxFocuser, UrlLoader> |
- |
-// Removes a blacklisted URL in both |_mostVisitedData|. |
-- (void)removeBlacklistedURL:(const GURL&)url; |
- |
-// Adds URL to the blacklist in both |_mostVisitedData|. |
-- (void)addBlacklistedURL:(const GURL&)url; |
- |
-// Logs a histogram due to a Most Visited item being opened. |
-- (void)logMostVisitedClick:(const NSUInteger)visitedIndex |
- tileType:(ntp_tiles::TileVisualType)tileType; |
- |
-// Called when a what's new promo is viewed. |
-- (void)promoViewed; |
- |
-// Called when a what's new promo is tapped. |
-- (void)promoTapped; |
- |
-// |YES| if the google landing toolbar can show the forward arrow. |
-- (BOOL)canGoForward; |
- |
-// |YES| if the google landing toolbar can show the back arrow.// |
-- (BOOL)canGoBack; |
- |
-// Called before the fake tab switcher icon is tapped. |
-- (void)prepareToEnterTabSwitcher:(id)sender; |
+@protocol GoogleLandingDataSource |
// TODO(crbug.com/694750): The following two methods should be moved to the |
// consumer, and converted into types more suitable for a consumer. |
@@ -71,8 +40,6 @@ class LargeIconService; |
// Gets the large icon service. |
- (favicon::LargeIconService*)largeIconService; |
- |
- |
@end |
#endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ |