OLD | NEW |
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_FAST_UNLOAD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_FAST_UNLOAD_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_FAST_UNLOAD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_FAST_UNLOAD_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // events since the user cancelled closing the window. | 114 // events since the user cancelled closing the window. |
115 void CancelWindowClose(); | 115 void CancelWindowClose(); |
116 | 116 |
117 private: | 117 private: |
118 // Overridden from content::NotificationObserver: | 118 // Overridden from content::NotificationObserver: |
119 void Observe(int type, | 119 void Observe(int type, |
120 const content::NotificationSource& source, | 120 const content::NotificationSource& source, |
121 const content::NotificationDetails& details) override; | 121 const content::NotificationDetails& details) override; |
122 | 122 |
123 // Overridden from TabStripModelObserver: | 123 // Overridden from TabStripModelObserver: |
124 void TabInsertedAt(content::WebContents* contents, | 124 void TabInsertedAt(TabStripModel* tab_strip_model, |
| 125 content::WebContents* contents, |
125 int index, | 126 int index, |
126 bool foreground) override; | 127 bool foreground) override; |
127 void TabDetachedAt(content::WebContents* contents, int index) override; | 128 void TabDetachedAt(content::WebContents* contents, int index) override; |
128 void TabReplacedAt(TabStripModel* tab_strip_model, | 129 void TabReplacedAt(TabStripModel* tab_strip_model, |
129 content::WebContents* old_contents, | 130 content::WebContents* old_contents, |
130 content::WebContents* new_contents, | 131 content::WebContents* new_contents, |
131 int index) override; | 132 int index) override; |
132 void TabStripEmpty() override; | 133 void TabStripEmpty() override; |
133 | 134 |
134 void TabAttachedImpl(content::WebContents* contents); | 135 void TabAttachedImpl(content::WebContents* contents); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 std::unique_ptr<DetachedWebContentsDelegate> detached_delegate_; | 198 std::unique_ptr<DetachedWebContentsDelegate> detached_delegate_; |
198 | 199 |
199 base::WeakPtrFactory<FastUnloadController> weak_factory_; | 200 base::WeakPtrFactory<FastUnloadController> weak_factory_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(FastUnloadController); | 202 DISALLOW_COPY_AND_ASSIGN(FastUnloadController); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace chrome | 205 } // namespace chrome |
205 | 206 |
206 #endif // CHROME_BROWSER_UI_FAST_UNLOAD_CONTROLLER_H_ | 207 #endif // CHROME_BROWSER_UI_FAST_UNLOAD_CONTROLLER_H_ |
OLD | NEW |