| OLD | NEW |
| 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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Overridden from content::NotificationObserver: | 96 // Overridden from content::NotificationObserver: |
| 97 virtual void Observe(int type, | 97 virtual void Observe(int type, |
| 98 const content::NotificationSource& source, | 98 const content::NotificationSource& source, |
| 99 const content::NotificationDetails& details) OVERRIDE; | 99 const content::NotificationDetails& details) OVERRIDE; |
| 100 | 100 |
| 101 // Overridden from TabStripModelObserver: | 101 // Overridden from TabStripModelObserver: |
| 102 virtual void TabInsertedAt(content::WebContents* contents, | 102 virtual void TabInsertedAt(content::WebContents* contents, |
| 103 int index, | 103 int index, |
| 104 bool foreground) OVERRIDE; | 104 bool foreground) OVERRIDE; |
| 105 virtual void TabDetachedAt(content::WebContents* contents, | 105 virtual void TabDetachedAt(content::WebContents* contents, |
| 106 int index) OVERRIDE; | 106 int index, |
| 107 bool closing_all) OVERRIDE; |
| 107 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 108 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 108 content::WebContents* old_contents, | 109 content::WebContents* old_contents, |
| 109 content::WebContents* new_contents, | 110 content::WebContents* new_contents, |
| 110 int index) OVERRIDE; | 111 int index) OVERRIDE; |
| 111 virtual void TabStripEmpty() OVERRIDE; | 112 virtual void TabStripEmpty() OVERRIDE; |
| 112 | 113 |
| 113 void TabAttachedImpl(content::WebContents* contents); | 114 void TabAttachedImpl(content::WebContents* contents); |
| 114 void TabDetachedImpl(content::WebContents* contents); | 115 void TabDetachedImpl(content::WebContents* contents); |
| 115 | 116 |
| 116 // Detach |contents| and wait for it to finish closing. | 117 // Detach |contents| and wait for it to finish closing. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 scoped_ptr<DetachedWebContentsDelegate> detached_delegate_; | 172 scoped_ptr<DetachedWebContentsDelegate> detached_delegate_; |
| 172 | 173 |
| 173 base::WeakPtrFactory<UnloadController> weak_factory_; | 174 base::WeakPtrFactory<UnloadController> weak_factory_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(UnloadController); | 176 DISALLOW_COPY_AND_ASSIGN(UnloadController); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace chrome | 179 } // namespace chrome |
| 179 | 180 |
| 180 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ | 181 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ |
| OLD | NEW |