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

Side by Side Diff: chrome/browser/metrics/browser_tab_strip_observer.h

Issue 2335203003: Add metrics to keep track of the tab activate/deactivate cycle (Closed)
Patch Set: Addressed comments Created 4 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_
6 #define CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_
7
8 class TabStripModel;
9
10 namespace content {
11 class WebContents;
12 }
13
14 class BrowserTabStripObserver {
15 public:
16 virtual void TabInsertedAt(TabStripModel* tab_strip_model,
17 content::WebContents* contents,
18 int index,
19 bool foreground) {}
20 virtual void TabClosingAt(TabStripModel* tab_strip_model,
21 content::WebContents* contents,
22 int index) {}
23 virtual void ActiveTabChanged(TabStripModel* tab_strip_model,
24 content::WebContents* old_contents,
25 content::WebContents* new_contents,
26 int index,
27 int reason) {}
28 virtual void TabPinnedStateChanged(TabStripModel* tab_strip_model,
29 content::WebContents* contents,
30 int index) {}
31
32 protected:
33 virtual ~BrowserTabStripObserver() {}
34 };
35
36 #endif // CHROME_BROWSER_METRICS_BROWSER_TAB_STRIP_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698