| 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..ebe08498ad08bc6fd31eae24eb1fb9915836a5c8 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);
|
| + 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;
|
| -
|
| - // Returns true if the page is the local NTP (i.e. its URL is
|
| - // chrome::kChromeSearchLocalNTPURL).
|
| - bool IsLocal() const;
|
| + ~InstantTab() override;
|
|
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(InstantTabTest, IsLocal);
|
| @@ -84,8 +72,6 @@ class InstantTab : public content::WebContentsObserver,
|
| // Update the status of Instant support.
|
| void InstantSupportDetermined(bool supports_instant);
|
|
|
| - void ClearContents();
|
| -
|
| Delegate* const delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(InstantTab);
|
|
|