OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #ifndef IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_ |
| 6 #define IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_ |
| 7 |
| 8 #import "ios/chrome/app/spotlight/base_spotlight_manager.h" |
| 9 |
| 10 namespace ios { |
| 11 class ChromeBrowserState; |
| 12 } // namespace ios |
| 13 |
| 14 // This spotlight manager handles indexing of sites shown on the NTP. Because of |
| 15 // privacy concerns, only sites shown on the NTP are indexed; therefore, this |
| 16 // manager mirrors the functionality seen in google_landing_controller. It uses |
| 17 // suggestions (most likely) as a data source if the user is logged in and top |
| 18 // sites otherwise. |
| 19 |
| 20 @interface TopSitesSpotlightManager : BaseSpotlightManager |
| 21 |
| 22 + (TopSitesSpotlightManager*)topSitesSpotlightManagerWithBrowserState: |
| 23 (ios::ChromeBrowserState*)browserState; |
| 24 |
| 25 // Reindexes all top sites, batching reindexes by 1 second. |
| 26 - (void)reindexTopSites; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_ |
OLD | NEW |