| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 bool ShouldCloseWindow(); | 323 bool ShouldCloseWindow(); |
| 324 | 324 |
| 325 bool IsAttemptingToCloseBrowser() const { | 325 bool IsAttemptingToCloseBrowser() const { |
| 326 return is_attempting_to_close_browser_; | 326 return is_attempting_to_close_browser_; |
| 327 } | 327 } |
| 328 | 328 |
| 329 // Invoked when the window containing us is closing. Performs the necessary | 329 // Invoked when the window containing us is closing. Performs the necessary |
| 330 // cleanup. | 330 // cleanup. |
| 331 void OnWindowClosing(); | 331 void OnWindowClosing(); |
| 332 | 332 |
| 333 // OnWindowActivationChanged handling /////////////////////////////////////// |
| 334 |
| 335 // Invoked when the window containing us is activated. |
| 336 void OnWindowActivated(); |
| 337 |
| 333 // In-progress download termination handling ///////////////////////////////// | 338 // In-progress download termination handling ///////////////////////////////// |
| 334 | 339 |
| 335 // Are normal and/or incognito downloads in progress? | 340 // Are normal and/or incognito downloads in progress? |
| 336 void CheckDownloadsInProgress(bool* normal_downloads, | 341 void CheckDownloadsInProgress(bool* normal_downloads, |
| 337 bool* incognito_downloads); | 342 bool* incognito_downloads); |
| 338 | 343 |
| 339 // Called when the user has decided whether to proceed or not with the browser | 344 // Called when the user has decided whether to proceed or not with the browser |
| 340 // closure. |cancel_downloads| is true if the downloads should be canceled | 345 // closure. |cancel_downloads| is true if the downloads should be canceled |
| 341 // and the browser closed, false if the browser should stay open and the | 346 // and the browser closed, false if the browser should stay open and the |
| 342 // downloads running. | 347 // downloads running. |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 // Helper which implements the TabRestoreServiceDelegate interface. | 1212 // Helper which implements the TabRestoreServiceDelegate interface. |
| 1208 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; | 1213 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; |
| 1209 | 1214 |
| 1210 scoped_ptr<InstantController> instant_; | 1215 scoped_ptr<InstantController> instant_; |
| 1211 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1216 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1212 | 1217 |
| 1213 DISALLOW_COPY_AND_ASSIGN(Browser); | 1218 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1214 }; | 1219 }; |
| 1215 | 1220 |
| 1216 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1221 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |