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

Unified Diff: chrome/browser/ui/search/instant_tab.h

Issue 2166023004: Cleanup in InstantTab and InstantController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/ui/search/instant_tab.h
diff --git a/chrome/browser/ui/search/instant_tab.h b/chrome/browser/ui/search/instant_tab.h
index c77f21cfb882d71615bf816e3c76d69361468b59..a5e6f7d811e26530dfd7406f22d97b193b2a1dd4 100644
--- a/chrome/browser/ui/search/instant_tab.h
+++ b/chrome/browser/ui/search/instant_tab.h
@@ -22,7 +22,7 @@ class WebContents;
// InstantTab is used to exchange messages with a page that implements the
// Instant/Embedded Search API (http://dev.chromium.org/embeddedsearch).
class InstantTab : public content::WebContentsObserver,
- public SearchModelObserver {
+ public SearchModelObserver {
public:
// InstantTab calls its delegate in response to messages received from the
// page. Each method is called with the |contents| corresponding to the page
@@ -43,23 +43,11 @@ class InstantTab : public content::WebContentsObserver,
virtual ~Delegate();
};
- explicit InstantTab(Delegate* delegate);
-
- ~InstantTab() override;
-
// Sets |web_contents| as the page to communicate with. |web_contents| may be
// NULL, which effectively stops all communication.
- void Init(content::WebContents* web_contents);
Marc Treib 2016/07/21 16:40:09 Merged into the ctor, no need for two-phase initia
+ explicit InstantTab(Delegate* delegate, content::WebContents* web_contents);
- // Returns true if the page is known to support the Instant API. This starts
- // out false, and is set to true whenever we get any message from the page.
- // Once true, it never becomes false (the page isn't expected to drop API
- // support suddenly).
- bool supports_instant() const;
Marc Treib 2016/07/21 16:40:09 This just forwarded to SearchTabHelper, and the lo
-
- // Returns true if the page is the local NTP (i.e. its URL is
- // chrome::kChromeSearchLocalNTPURL).
- bool IsLocal() const;
Marc Treib 2016/07/21 16:40:09 Not used
+ ~InstantTab() override;
private:
FRIEND_TEST_ALL_PREFIXES(InstantTabTest, IsLocal);

Powered by Google App Engine
This is Rietveld 408576698