| 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 #include "build/build_config.h" |
| 9 | 10 |
| 10 class Browser; | 11 class Browser; |
| 11 | 12 |
| 12 namespace chrome { | 13 namespace chrome { |
| 13 | 14 |
| 14 // Starts a user initiated exit process. Called from Browser::Exit. | 15 // Starts a user initiated exit process. Called from Browser::Exit. |
| 15 // On platforms other than ChromeOS, this is equivalent to | 16 // On platforms other than ChromeOS, this is equivalent to |
| 16 // CloseAllBrowsers() On ChromeOS, this tells session manager | 17 // CloseAllBrowsers() On ChromeOS, this tells session manager |
| 17 // that chrome is signing out, which lets session manager send | 18 // that chrome is signing out, which lets session manager send |
| 18 // SIGTERM to start actual exit process. | 19 // SIGTERM to start actual exit process. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Called once the application is exiting to do any platform specific | 107 // Called once the application is exiting to do any platform specific |
| 107 // processing required. | 108 // processing required. |
| 108 void HandleAppExitingForPlatform(); | 109 void HandleAppExitingForPlatform(); |
| 109 | 110 |
| 110 // Disable browser shutdown for unit tests. | 111 // Disable browser shutdown for unit tests. |
| 111 void DisableShutdownForTesting(bool disable_shutdown_for_testing); | 112 void DisableShutdownForTesting(bool disable_shutdown_for_testing); |
| 112 | 113 |
| 113 } // namespace chrome | 114 } // namespace chrome |
| 114 | 115 |
| 115 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 116 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
| OLD | NEW |