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

Side by Side Diff: chrome/browser/ui/search/instant_tab.h

Issue 2127783002: Make EmitNtpStatistics() private. (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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/search/instant_controller.cc ('k') | chrome/browser/ui/search/instant_tab.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/search/instant_page.h" 10 #include "chrome/browser/ui/search/instant_page.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 // InstantTab represents a committed page (i.e. an actual tab on the tab strip) 14 // InstantTab represents a committed page (i.e. an actual tab on the tab strip)
15 // that supports the Instant API. 15 // that supports the Instant API.
16 class InstantTab : public InstantPage { 16 class InstantTab : public InstantPage {
17 public: 17 public:
18 InstantTab(InstantPage::Delegate* delegate, Profile* profile); 18 InstantTab(InstantPage::Delegate* delegate, Profile* profile);
19 ~InstantTab() override; 19 ~InstantTab() override;
20 20
21 // Start observing |contents| for messages. Sends a message to determine if 21 // Start observing |contents| for messages. Sends a message to determine if
22 // the page supports the Instant API. 22 // the page supports the Instant API.
23 void Init(content::WebContents* contents); 23 void Init(content::WebContents* contents);
24 24
25 // Logs a number of statistics regarding the NTP. 25 // Logs statistics regarding the NTP.
26 static void EmitNtpStatistics(content::WebContents* contents); 26 static void TabDeactivated(content::WebContents* contents);
27 static void MostVisitedItemsChanged(content::WebContents* contents);
27 28
28 private: 29 private:
29 // Overridden from InstantPage: 30 // Overridden from InstantPage:
30 bool ShouldProcessAboutToNavigateMainFrame() override; 31 bool ShouldProcessAboutToNavigateMainFrame() override;
31 32
32 DISALLOW_COPY_AND_ASSIGN(InstantTab); 33 DISALLOW_COPY_AND_ASSIGN(InstantTab);
33 }; 34 };
34 35
35 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ 36 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_controller.cc ('k') | chrome/browser/ui/search/instant_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698