| 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 { |
| 11 | 11 |
| 12 enum ShutdownType { | 12 enum ShutdownType { |
| 13 // an uninitialized value | 13 // an uninitialized value |
| 14 NOT_VALID = 0, | 14 NOT_VALID = 0, |
| 15 // the last browser window was closed | 15 // the last browser window was closed |
| 16 WINDOW_CLOSE, | 16 WINDOW_CLOSE, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // except from appropriate places in BrowserList. To quit, use usual means, | 61 // except from appropriate places in BrowserList. To quit, use usual means, |
| 62 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or | 62 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or |
| 63 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, | 63 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, |
| 64 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other | 64 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other |
| 65 // platforms can call SetTryingToQuit(false) directly. | 65 // platforms can call SetTryingToQuit(false) directly. |
| 66 void SetTryingToQuit(bool quitting); | 66 void SetTryingToQuit(bool quitting); |
| 67 | 67 |
| 68 // General accessor. | 68 // General accessor. |
| 69 bool IsTryingToQuit(); | 69 bool IsTryingToQuit(); |
| 70 | 70 |
| 71 // Starts to collect shutdown traces. On ChromeOS this will start immediately |
| 72 // on AttemptUserExit() and all other systems will start once all tabs are |
| 73 // closed. |
| 74 void StartShutdownTracing(); |
| 75 |
| 71 } // namespace browser_shutdown | 76 } // namespace browser_shutdown |
| 72 | 77 |
| 73 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ | 78 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
| OLD | NEW |