OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_SHUTDOWN_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_SHUTDOWN_H_ | |
7 #pragma once | |
8 | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace content { | |
12 namespace browser_shutdown { | |
13 | |
14 // This can be used for as-fast-as-possible shutdown, in cases where | |
15 // time for shutdown is limited and we just need to write out as much | |
16 // data as possible before our time runs out. | |
17 // | |
18 // This causes the shutdown sequence embodied by | |
19 // BrowserMainParts::PostMainMessageLoopRun through | |
20 // BrowserMainParts::FinalCleanup to occur, i.e. we pretend the | |
21 // message loop finished, all threads are stopped in sequence and | |
22 // PreStopThread/PostStopThread gets called, and at least, | |
23 // FinalCleanup is called. | |
24 // | |
25 // As this violates the normal order of shutdown, likely leaving the | |
26 // process in a bad state, the last thing this function does is | |
27 // terminate the process (right after calling | |
28 // BrowserMainParts::FinalCleanup). | |
29 CONTENT_EXPORT void ImmediateShutdownAndExitProcess(); | |
jam
2011/11/23 18:30:56
nit: can we put this as a static function in Brows
Jói
2011/11/23 22:13:39
As discussed, we don't plan to make BMP public. R
| |
30 | |
31 } // namespace browser_shutdown | |
32 } // namespace content | |
33 | |
34 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_SHUTDOWN_H_ | |
OLD | NEW |