OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #pragma once | 7 #pragma once |
8 | 8 |
9 class PrefService; | 9 class PrefService; |
10 | 10 |
(...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, when we can no longer depend | 69 // This is true on X during an END_SESSION initiated by X IO Error, when we |
70 // on the X server to be running. As a result we don't explicitly close the | 70 // can no longer depend on the X server to be running. As a result we don't |
71 // browser windows, which can lead to conditions which would fail checks. | 71 // explicitly close the browser windows, which can lead to conditions which |
| 72 // would fail checks. |
72 bool ShuttingDownWithoutClosingBrowsers(); | 73 bool ShuttingDownWithoutClosingBrowsers(); |
73 | 74 |
| 75 // Sets the ShuttingDownWithoutClosingBrowsers flag. |
| 76 void SetShuttingDownWithoutClosingBrowsers(bool without_close); |
| 77 |
74 } // namespace browser_shutdown | 78 } // namespace browser_shutdown |
75 | 79 |
76 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ | 80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ |
OLD | NEW |