Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: content/public/browser/browser_shutdown.h

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Temporary - look at browser_list, browser_main_loop, content/p/b/browser_shutdown Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/browser_main_parts.h ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/public/browser/browser_main_parts.h ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698