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

Side by Side Diff: components/ntp_tiles/ios/most_visited_sites_bridge_observer.mm

Issue 2791253002: Create an Obj-C bridge for MostVisitedSitesObserver (Closed)
Patch Set: Fix BUILD.gn 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "components/ntp_tiles/ios/most_visited_sites_bridge_observer.h"
6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
11 namespace ntp_tiles {
12
13 MostVisitedSitesBridge::MostVisitedSitesBridge(
14 id<MostVisitedSitesObserver> observer) {
15 observer_ = observer;
16 }
17
18 void MostVisitedSitesBridge::OnMostVisitedURLsAvailable(
19 const NTPTilesVector& most_visited) {
20 [observer_ onMostVisitedURLsAvailable:most_visited];
21 }
22
23 void MostVisitedSitesBridge::OnIconMadeAvailable(const GURL& site_url) {
24 [observer_ onIconMadeAvailable:site_url];
25 }
26
27 } // namespace ntp_tiles
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698