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

Side by Side Diff: chrome/browser/browser_shutdown.h

Issue 8262009: Chrome OS: Shutdown without blocking when SIGTERM is received. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 months 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 | « no previous file | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #pragma once 7 #pragma once
8 8
9 class PrefService; 9 class PrefService;
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // except from appropriate places in BrowserList. To quit, use usual means, 59 // except from appropriate places in BrowserList. To quit, use usual means,
60 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or 60 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or
61 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, 61 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting,
62 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other 62 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other
63 // platforms can call SetTryingToQuit(false) directly. 63 // platforms can call SetTryingToQuit(false) directly.
64 void SetTryingToQuit(bool quitting); 64 void SetTryingToQuit(bool quitting);
65 65
66 // General accessor. 66 // General accessor.
67 bool IsTryingToQuit(); 67 bool IsTryingToQuit();
68 68
69 // This is true on X during an END_SESSION, when we can no longer depend 69 // This is true on X during an END_SESSION initiated by X IO Error, when we
70 // on the X server to be running. As a result we don't explicitly close the 70 // can no longer depend on the X server to be running. As a result we don't
71 // browser windows, which can lead to conditions which would fail checks. 71 // explicitly close the browser windows, which can lead to conditions which
72 // would fail checks.
72 bool ShuttingDownWithoutClosingBrowsers(); 73 bool ShuttingDownWithoutClosingBrowsers();
73 74
75 // Sets the ShuttingDownWithoutClosingBrowsers flag.
76 void SetShuttingDownWithoutClosingBrowsers(bool without_close);
77
74 } // namespace browser_shutdown 78 } // namespace browser_shutdown
75 79
76 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ 80 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698