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

Unified Diff: ios/chrome/app/spotlight/topsites_spotlight_manager.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/app/spotlight/spotlight_util.mm ('k') | ios/chrome/app/spotlight/topsites_spotlight_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/spotlight/topsites_spotlight_manager.h
diff --git a/ios/chrome/app/spotlight/topsites_spotlight_manager.h b/ios/chrome/app/spotlight/topsites_spotlight_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..02f010e01745f1cce1f5220235aac894e1457084
--- /dev/null
+++ b/ios/chrome/app/spotlight/topsites_spotlight_manager.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_
+#define IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_
+
+#import "ios/chrome/app/spotlight/base_spotlight_manager.h"
+
+namespace ios {
+class ChromeBrowserState;
+} // namespace ios
+
+// This spotlight manager handles indexing of sites shown on the NTP. Because of
+// privacy concerns, only sites shown on the NTP are indexed; therefore, this
+// manager mirrors the functionality seen in google_landing_controller. It uses
+// suggestions (most likely) as a data source if the user is logged in and top
+// sites otherwise.
+
+@interface TopSitesSpotlightManager : BaseSpotlightManager
+
++ (TopSitesSpotlightManager*)topSitesSpotlightManagerWithBrowserState:
+ (ios::ChromeBrowserState*)browserState;
+
+// Reindexes all top sites, batching reindexes by 1 second.
+- (void)reindexTopSites;
+
+@end
+
+#endif // IOS_CHROME_APP_SPOTLIGHT_TOPSITES_SPOTLIGHT_MANAGER_H_
« no previous file with comments | « ios/chrome/app/spotlight/spotlight_util.mm ('k') | ios/chrome/app/spotlight/topsites_spotlight_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698