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