| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // except from appropriate places in BrowserList. To quit, use usual means, | 63 // except from appropriate places in BrowserList. To quit, use usual means, |
| 64 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or | 64 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or |
| 65 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, | 65 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, |
| 66 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other | 66 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other |
| 67 // platforms can call SetTryingToQuit(false) directly. | 67 // platforms can call SetTryingToQuit(false) directly. |
| 68 void SetTryingToQuit(bool quitting); | 68 void SetTryingToQuit(bool quitting); |
| 69 | 69 |
| 70 // General accessor. | 70 // General accessor. |
| 71 bool IsTryingToQuit(); | 71 bool IsTryingToQuit(); |
| 72 | 72 |
| 73 // Controls whether when restarting the browser should be in the background |
| 74 // by adding the kNoStartupWindow switch to the command line. |
| 75 void SetShouldRestartInBackground(bool should_restart_in_background); |
| 76 |
| 73 // Starts to collect shutdown traces. On ChromeOS this will start immediately | 77 // Starts to collect shutdown traces. On ChromeOS this will start immediately |
| 74 // on AttemptUserExit() and all other systems will start once all tabs are | 78 // on AttemptUserExit() and all other systems will start once all tabs are |
| 75 // closed. | 79 // closed. |
| 76 void StartShutdownTracing(); | 80 void StartShutdownTracing(); |
| 77 | 81 |
| 78 } // namespace browser_shutdown | 82 } // namespace browser_shutdown |
| 79 | 83 |
| 80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ | 84 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
| OLD | NEW |