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

Unified Diff: chrome/browser/search/instant_service.h

Issue 23455047: InstantExtended: Send search URLs to renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More browsertest fixes Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/instant_service.h
diff --git a/chrome/browser/search/instant_service.h b/chrome/browser/search/instant_service.h
index f876c4a613a4d90090a091572d9dfad0148bfe6a..e261d6cfb9fc37d9607aba85a25029573e9e5309 100644
--- a/chrome/browser/search/instant_service.h
+++ b/chrome/browser/search/instant_service.h
@@ -29,6 +29,8 @@
class GURL;
class InstantIOContext;
class InstantServiceObserver;
+class InstantTestBase;
+class InstantServiceTest;
class Profile;
class ThemeService;
@@ -102,6 +104,9 @@ class InstantService : public BrowserContextKeyedService,
// object. Used to destroy the preloaded InstantNTP.
void OnBrowserInstantControllerDestroyed();
+ // Sends the current set of search URLs to a renderer process.
+ void SendSearchURLsToRenderer(content::RenderProcessHost* rph);
+
private:
friend class InstantExtendedTest;
friend class InstantServiceTest;
@@ -115,6 +120,7 @@ class InstantService : public BrowserContextKeyedService,
FRIEND_TEST_ALL_PREFIXES(InstantExtendedManualTest,
MANUAL_SearchesFromFakebox);
FRIEND_TEST_ALL_PREFIXES(InstantExtendedTest, ProcessIsolation);
+ FRIEND_TEST_ALL_PREFIXES(InstantServiceTest, SendsSearchURLsToRenderer);
// Overridden from BrowserContextKeyedService:
virtual void Shutdown() OVERRIDE;
@@ -124,6 +130,9 @@ class InstantService : public BrowserContextKeyedService,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // Called when a renderer process is terminated.
+ void OnRendererProcessTerminated(int process_id);
+
// Called when we get new most visited items from TopSites, registered as an
// async callback. Parses them and sends them to the renderer via
// SendMostVisitedItems.
« no previous file with comments | « chrome/browser/chrome_content_browser_client_browsertest.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698