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

Side by Side Diff: chrome/browser/ui/ash/launcher/browser_status_monitor.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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // TabStripModelObserver overrides: 65 // TabStripModelObserver overrides:
66 void ActiveTabChanged(content::WebContents* old_contents, 66 void ActiveTabChanged(content::WebContents* old_contents,
67 content::WebContents* new_contents, 67 content::WebContents* new_contents,
68 int index, 68 int index,
69 int reason) override; 69 int reason) override;
70 void TabReplacedAt(TabStripModel* tab_strip_model, 70 void TabReplacedAt(TabStripModel* tab_strip_model,
71 content::WebContents* old_contents, 71 content::WebContents* old_contents,
72 content::WebContents* new_contents, 72 content::WebContents* new_contents,
73 int index) override; 73 int index) override;
74 void TabInsertedAt(content::WebContents* contents, 74 void TabInsertedAt(TabStripModel* tab_strip_model,
75 content::WebContents* contents,
75 int index, 76 int index,
76 bool foreground) override; 77 bool foreground) override;
77 void TabClosingAt(TabStripModel* tab_strip_mode, 78 void TabClosingAt(TabStripModel* tab_strip_mode,
78 content::WebContents* contents, 79 content::WebContents* contents,
79 int index) override; 80 int index) override;
80 81
81 // Called from our own |LocalWebContentsObserver| when web contents did go 82 // Called from our own |LocalWebContentsObserver| when web contents did go
82 // away without any other notification. This might happen in case of 83 // away without any other notification. This might happen in case of
83 // application uninstalls, page crashes, ...). 84 // application uninstalls, page crashes, ...).
84 void WebContentsDestroyed(content::WebContents* web_contents); 85 void WebContentsDestroyed(content::WebContents* web_contents);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 BrowserToAppIDMap browser_to_app_id_map_; 122 BrowserToAppIDMap browser_to_app_id_map_;
122 WebContentsToObserverMap webcontents_to_observer_map_; 123 WebContentsToObserverMap webcontents_to_observer_map_;
123 std::unique_ptr<SettingsWindowObserver> settings_window_observer_; 124 std::unique_ptr<SettingsWindowObserver> settings_window_observer_;
124 125
125 BrowserTabStripTracker browser_tab_strip_tracker_; 126 BrowserTabStripTracker browser_tab_strip_tracker_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor); 128 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor);
128 }; 129 };
129 130
130 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 131 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698