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_BROWSER_SHUTDOWN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H_ | 6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
(...skipping 25 matching lines...) Expand all Loading... | |
36 // BrowserProcess and the various threads go away. | 36 // BrowserProcess and the various threads go away. |
37 // | 37 // |
38 // Returns true if the session should be restarted. | 38 // Returns true if the session should be restarted. |
39 bool ShutdownPreThreadsStop(); | 39 bool ShutdownPreThreadsStop(); |
40 | 40 |
41 // Performs the remaining shutdown tasks after all threads but the | 41 // Performs the remaining shutdown tasks after all threads but the |
42 // main thread have been stopped. This includes deleting g_browser_process. | 42 // main thread have been stopped. This includes deleting g_browser_process. |
43 // | 43 // |
44 // The provided parameter indicates whether a preference to restart | 44 // The provided parameter indicates whether a preference to restart |
45 // the session was present. | 45 // the session was present. |
46 void ShutdownPostThreadsStop(bool restart_last_session); | 46 void ShutdownPostThreadsStop(bool restart_last_session, |
sky
2016/07/06 16:55:33
nit: use bitmask to improve readability. Also, doc
dgn
2016/07/22 15:18:09
Done.
| |
47 bool restart_in_background); | |
47 #endif | 48 #endif |
48 | 49 |
49 // Called at startup to create a histogram from our previous shutdown time. | 50 // Called at startup to create a histogram from our previous shutdown time. |
50 void ReadLastShutdownInfo(); | 51 void ReadLastShutdownInfo(); |
51 | 52 |
52 // There are various situations where the browser process should continue to | 53 // There are various situations where the browser process should continue to |
53 // run after the last browser window has closed - the Mac always continues | 54 // run after the last browser window has closed - the Mac always continues |
54 // running until the user explicitly quits, and on Windows/Linux the application | 55 // running until the user explicitly quits, and on Windows/Linux the application |
55 // should not shutdown when the last browser window closes if there are any | 56 // should not shutdown when the last browser window closes if there are any |
56 // BackgroundContents running. | 57 // BackgroundContents running. |
(...skipping 14 matching lines...) Expand all Loading... | |
71 bool IsTryingToQuit(); | 72 bool IsTryingToQuit(); |
72 | 73 |
73 // Starts to collect shutdown traces. On ChromeOS this will start immediately | 74 // Starts to collect shutdown traces. On ChromeOS this will start immediately |
74 // on AttemptUserExit() and all other systems will start once all tabs are | 75 // on AttemptUserExit() and all other systems will start once all tabs are |
75 // closed. | 76 // closed. |
76 void StartShutdownTracing(); | 77 void StartShutdownTracing(); |
77 | 78 |
78 } // namespace browser_shutdown | 79 } // namespace browser_shutdown |
79 | 80 |
80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ | 81 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
OLD | NEW |