Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / search / instant_tab.h
blobaf0c26e1d515e63c3cb678eccdebea9256b2d6dc
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/search/instant_page.h"
12 class Profile;
14 // InstantTab represents a committed page (i.e. an actual tab on the tab strip)
15 // that supports the Instant API.
16 class InstantTab : public InstantPage {
17 public:
18 InstantTab(InstantPage::Delegate* delegate, Profile* profile);
19 ~InstantTab() override;
21 // Start observing |contents| for messages. Sends a message to determine if
22 // the page supports the Instant API.
23 void Init(content::WebContents* contents);
25 // Logs a number of statistics regarding the NTP.
26 static void EmitNtpStatistics(content::WebContents* contents);
28 private:
29 // Overridden from InstantPage:
30 bool ShouldProcessAboutToNavigateMainFrame() override;
32 DISALLOW_COPY_AND_ASSIGN(InstantTab);
35 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_