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

Side by Side Diff: chrome/browser/ui/unload_controller.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_UNLOAD_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 private: 86 private:
87 typedef std::set<content::WebContents*> UnloadListenerSet; 87 typedef std::set<content::WebContents*> UnloadListenerSet;
88 88
89 // Overridden from content::NotificationObserver: 89 // Overridden from content::NotificationObserver:
90 void Observe(int type, 90 void Observe(int type,
91 const content::NotificationSource& source, 91 const content::NotificationSource& source,
92 const content::NotificationDetails& details) override; 92 const content::NotificationDetails& details) override;
93 93
94 // Overridden from TabStripModelObserver: 94 // Overridden from TabStripModelObserver:
95 void TabInsertedAt(content::WebContents* contents, 95 void TabInsertedAt(TabStripModel* tab_strip_model,
96 content::WebContents* contents,
96 int index, 97 int index,
97 bool foreground) override; 98 bool foreground) override;
98 void TabDetachedAt(content::WebContents* contents, int index) override; 99 void TabDetachedAt(content::WebContents* contents, int index) override;
99 void TabReplacedAt(TabStripModel* tab_strip_model, 100 void TabReplacedAt(TabStripModel* tab_strip_model,
100 content::WebContents* old_contents, 101 content::WebContents* old_contents,
101 content::WebContents* new_contents, 102 content::WebContents* new_contents,
102 int index) override; 103 int index) override;
103 void TabStripEmpty() override; 104 void TabStripEmpty() override;
104 105
105 void TabAttachedImpl(content::WebContents* contents); 106 void TabAttachedImpl(content::WebContents* contents);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::Callback<void(bool)> on_close_confirmed_; 156 base::Callback<void(bool)> on_close_confirmed_;
156 157
157 base::WeakPtrFactory<UnloadController> weak_factory_; 158 base::WeakPtrFactory<UnloadController> weak_factory_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(UnloadController); 160 DISALLOW_COPY_AND_ASSIGN(UnloadController);
160 }; 161 };
161 162
162 } // namespace chrome 163 } // namespace chrome
163 164
164 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ 165 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698