Chromium Code Reviews| Index: chrome/browser/search/instant_service.h |
| diff --git a/chrome/browser/search/instant_service.h b/chrome/browser/search/instant_service.h |
| index 4b50da36b85b0dfecbc4d8359782ed7cf65315f9..8ad16b35437c155fbdef7f094994d1b38243d68f 100644 |
| --- a/chrome/browser/search/instant_service.h |
| +++ b/chrome/browser/search/instant_service.h |
| @@ -20,7 +20,6 @@ |
| #include "base/prefs/pref_change_registrar.h" |
| #include "chrome/browser/google/google_url_tracker.h" |
| #include "chrome/browser/history/history_types.h" |
| -#include "chrome/browser/ui/search/instant_ntp_prerenderer.h" |
| #include "chrome/browser/ui/search/instant_search_prerenderer.h" |
| #include "chrome/common/instant_types.h" |
| #include "components/browser_context_keyed_service/browser_context_keyed_service.h" |
| @@ -36,6 +35,7 @@ class Profile; |
| class ThemeService; |
| namespace content { |
| +class RenderProcessHost; |
| class WebContents; |
|
kmadhusu
2014/01/09 23:31:43
Forward declaration is no longer required.
samarth
2014/01/10 05:13:32
Done.
|
| } |
| @@ -89,22 +89,6 @@ class InstantService : public BrowserContextKeyedService, |
| // NTP. |
| void UpdateMostVisitedItemsInfo(); |
| - // Forwards the request to InstantNTPPrerenderer to release and return the |
| - // preloaded InstantNTP WebContents. May be NULL. InstantNTPPrerenderer will |
| - // load a new InstantNTP after releasing the preloaded contents. |
| - scoped_ptr<content::WebContents> ReleaseNTPContents() WARN_UNUSED_RESULT; |
| - |
| - // The NTP WebContents. May be NULL. InstantNTPPrerenderer retains ownership. |
| - content::WebContents* GetNTPContents() const; |
| - |
| - // Notifies InstantService about the creation of a BrowserInstantController |
| - // object. Used to preload InstantNTP. |
| - void OnBrowserInstantControllerCreated(); |
| - |
| - // Notifies InstantService about the destruction of a BrowserInstantController |
| - // 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); |
| @@ -154,9 +138,6 @@ class InstantService : public BrowserContextKeyedService, |
| void OnDefaultSearchProviderChanged(const std::string& pref_name); |
| - // Used by tests. |
| - InstantNTPPrerenderer* ntp_prerenderer(); |
| - |
| void ResetInstantSearchPrerenderer(); |
| Profile* const profile_; |
| @@ -178,12 +159,6 @@ class InstantService : public BrowserContextKeyedService, |
| scoped_refptr<InstantIOContext> instant_io_context_; |
| - InstantNTPPrerenderer ntp_prerenderer_; |
| - |
| - // Total number of BrowserInstantController objects (does not include objects |
| - // created for OTR browser windows). Used to preload and delete InstantNTP. |
| - size_t browser_instant_controller_object_count_; |
| - |
| // Set to NULL if the default search provider does not support Instant. |
| scoped_ptr<InstantSearchPrerenderer> instant_prerenderer_; |