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" |
| 9 |
8 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
9 | 11 |
10 namespace browser_shutdown { | 12 namespace browser_shutdown { |
11 | 13 |
12 enum ShutdownType { | 14 enum ShutdownType { |
13 // an uninitialized value | 15 // an uninitialized value |
14 NOT_VALID = 0, | 16 NOT_VALID = 0, |
15 // the last browser window was closed | 17 // the last browser window was closed |
16 WINDOW_CLOSE, | 18 WINDOW_CLOSE, |
17 // user clicked on the Exit menu item | 19 // user clicked on the Exit menu item |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool IsTryingToQuit(); | 71 bool IsTryingToQuit(); |
70 | 72 |
71 // Starts to collect shutdown traces. On ChromeOS this will start immediately | 73 // Starts to collect shutdown traces. On ChromeOS this will start immediately |
72 // on AttemptUserExit() and all other systems will start once all tabs are | 74 // on AttemptUserExit() and all other systems will start once all tabs are |
73 // closed. | 75 // closed. |
74 void StartShutdownTracing(); | 76 void StartShutdownTracing(); |
75 | 77 |
76 } // namespace browser_shutdown | 78 } // namespace browser_shutdown |
77 | 79 |
78 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ | 80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H_ |
OLD | NEW |