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 #include "build/build_config.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // Starts a user initiated relaunch process. On platforms other than | 29 // Starts a user initiated relaunch process. On platforms other than |
30 // chromeos, this is equivalent to AttemptRestart. On ChromeOS, this relaunches | 30 // chromeos, this is equivalent to AttemptRestart. On ChromeOS, this relaunches |
31 // the entire OS, instead of just relaunching the browser. | 31 // the entire OS, instead of just relaunching the browser. |
32 void AttemptRelaunch(); | 32 void AttemptRelaunch(); |
33 | 33 |
34 // Attempt to exit by closing all browsers. This is equivalent to | 34 // Attempt to exit by closing all browsers. This is equivalent to |
35 // CloseAllBrowsers() on platforms where the application exits | 35 // CloseAllBrowsers() on platforms where the application exits |
36 // when no more windows are remaining. On other platforms (the Mac), | 36 // when no more windows are remaining. On other platforms (the Mac), |
37 // this will additionally exit the application if all browsers are | 37 // this will additionally exit the application if all browsers are |
38 // successfully closed. | 38 // successfully closed. |
39 // Note that he exit process may be interrupted by download or | 39 // Note that the exit process may be interrupted by download or |
40 // unload handler, and the browser may or may not exit. | 40 // unload handler, and the browser may or may not exit. |
41 void AttemptExit(); | 41 void AttemptExit(); |
42 | 42 |
43 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
44 // Shutdown chrome cleanly without blocking. This is called | 44 // Shutdown chrome cleanly without blocking. This is called |
45 // when SIGTERM is received on Chrome OS, and always sets | 45 // when SIGTERM is received on Chrome OS, and always sets |
46 // exit-cleanly bit and exits the browser, even if there is | 46 // exit-cleanly bit and exits the browser, even if there is |
47 // ongoing downloads or a page with onbeforeunload handler. | 47 // ongoing downloads or a page with onbeforeunload handler. |
48 // | 48 // |
49 // If you need to exit or restart in your code on ChromeOS, | 49 // If you need to exit or restart in your code on ChromeOS, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void OnAppExiting(); | 83 void OnAppExiting(); |
84 | 84 |
85 // Called once the application is exiting to do any platform specific | 85 // Called once the application is exiting to do any platform specific |
86 // processing required. | 86 // processing required. |
87 void HandleAppExitingForPlatform(); | 87 void HandleAppExitingForPlatform(); |
88 #endif // !defined(OS_ANDROID) | 88 #endif // !defined(OS_ANDROID) |
89 | 89 |
90 } // namespace chrome | 90 } // namespace chrome |
91 | 91 |
92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
OLD | NEW |