| 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 class PrefRegistrySimple; | 8 class PrefRegistrySimple; |
| 9 | 9 |
| 10 namespace browser_shutdown { | 10 namespace browser_shutdown { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // except from appropriate places in BrowserList. To quit, use usual means, | 59 // except from appropriate places in BrowserList. To quit, use usual means, |
| 60 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or | 60 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or |
| 61 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, | 61 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, |
| 62 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other | 62 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other |
| 63 // platforms can call SetTryingToQuit(false) directly. | 63 // platforms can call SetTryingToQuit(false) directly. |
| 64 void SetTryingToQuit(bool quitting); | 64 void SetTryingToQuit(bool quitting); |
| 65 | 65 |
| 66 // General accessor. | 66 // General accessor. |
| 67 bool IsTryingToQuit(); | 67 bool IsTryingToQuit(); |
| 68 | 68 |
| 69 // This is true on X during an END_SESSION initiated by X IO Error, when we | |
| 70 // can no longer depend on the X server to be running. As a result we don't | |
| 71 // explicitly close the browser windows, which can lead to conditions which | |
| 72 // would fail checks. | |
| 73 bool ShuttingDownWithoutClosingBrowsers(); | |
| 74 | |
| 75 // Sets the ShuttingDownWithoutClosingBrowsers flag. | |
| 76 void SetShuttingDownWithoutClosingBrowsers(bool without_close); | |
| 77 | |
| 78 } // namespace browser_shutdown | 69 } // namespace browser_shutdown |
| 79 | 70 |
| 80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ | 71 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ |
| OLD | NEW |