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_LIFETIME_APPLICATION_LIFETIME_H_ | 5 #ifndef CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 | 9 |
10 class Browser; | 10 class Browser; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void OnAppExiting(); | 109 void OnAppExiting(); |
110 | 110 |
111 // Called once the application is exiting to do any platform specific | 111 // Called once the application is exiting to do any platform specific |
112 // processing required. | 112 // processing required. |
113 void HandleAppExitingForPlatform(); | 113 void HandleAppExitingForPlatform(); |
114 | 114 |
115 // Returns true if we can start the shutdown sequence for the browser, i.e. the | 115 // Returns true if we can start the shutdown sequence for the browser, i.e. the |
116 // last browser window is being closed. | 116 // last browser window is being closed. |
117 bool ShouldStartShutdown(Browser* browser); | 117 bool ShouldStartShutdown(Browser* browser); |
118 | 118 |
| 119 // Disable browser shutdown for unit tests. |
| 120 void DisableShutdownForTesting(bool disable_shutdown_for_testing); |
| 121 |
119 } // namespace chrome | 122 } // namespace chrome |
120 | 123 |
121 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 124 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
OLD | NEW |