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

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: Introduce and use BrowserThreadDelegate, BMP::Pre/PostStartThread, to make this a safe refactoring. 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
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
13 // This can be used for as-fast-as-possible shutdown, in cases where
14 // time for shutdown is limited and we just need to write out as much
15 // data as possible before our time runs out.
16 //
17 // This causes the shutdown sequence embodied by
18 // BrowserMainParts::PostMainMessageLoopRun through
19 // BrowserMainParts::PostDestroyThreads to occur, i.e. we pretend the
20 // message loop finished, all threads are stopped in sequence and
21 // PreStopThread/PostStopThread gets called, and at least,
22 // PostDestroyThreads is called.
23 //
24 // As this violates the normal order of shutdown, likely leaving the
25 // process in a bad state, the last thing this function does is
26 // terminate the process (right after calling
27 // BrowserMainParts::PostDestroyThreads).
28 CONTENT_EXPORT void ImmediateShutdownAndExitProcess();
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_SHUTDOWN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698