| 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/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class TabStripModel; | 17 class TabStripModel; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class NotificationSource; | 20 class NotificationSource; |
| 21 class NotifictaionDetails; | 21 class NotificationDetails; |
| 22 class WebContents; | 22 class WebContents; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace chrome { | 25 namespace chrome { |
| 26 | 26 |
| 27 class UnloadController : public content::NotificationObserver, | 27 class UnloadController : public content::NotificationObserver, |
| 28 public TabStripModelObserver { | 28 public TabStripModelObserver { |
| 29 public: | 29 public: |
| 30 explicit UnloadController(Browser* browser); | 30 explicit UnloadController(Browser* browser); |
| 31 virtual ~UnloadController(); | 31 virtual ~UnloadController(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 base::Callback<void(bool)> on_close_confirmed_; | 155 base::Callback<void(bool)> on_close_confirmed_; |
| 156 | 156 |
| 157 base::WeakPtrFactory<UnloadController> weak_factory_; | 157 base::WeakPtrFactory<UnloadController> weak_factory_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(UnloadController); | 159 DISALLOW_COPY_AND_ASSIGN(UnloadController); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace chrome | 162 } // namespace chrome |
| 163 | 163 |
| 164 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ | 164 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_H_ |
| OLD | NEW |