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

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

Issue 1388303002: Move assorted function in application_lifetime to where they are used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
« 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) 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 class PrefRegistrySimple; 8 class PrefRegistrySimple;
9 9
10 namespace browser_shutdown { 10 namespace browser_shutdown {
11 11
12 enum ShutdownType { 12 enum ShutdownType {
13 // an uninitialized value 13 // an uninitialized value
14 NOT_VALID = 0, 14 NOT_VALID = 0,
15 // the last browser window was closed 15 // the last browser window was closed
16 WINDOW_CLOSE, 16 WINDOW_CLOSE,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // except from appropriate places in BrowserList. To quit, use usual means, 61 // except from appropriate places in BrowserList. To quit, use usual means,
62 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or 62 // e.g., using |chrome_browser_application_mac::Terminate()| on the Mac, or
63 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting, 63 // |BrowserList::CloseAllWindowsAndExit()| on other platforms. To stop quitting,
64 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other 64 // use |chrome_browser_application_mac::CancelTerminate()| on the Mac; other
65 // platforms can call SetTryingToQuit(false) directly. 65 // platforms can call SetTryingToQuit(false) directly.
66 void SetTryingToQuit(bool quitting); 66 void SetTryingToQuit(bool quitting);
67 67
68 // General accessor. 68 // General accessor.
69 bool IsTryingToQuit(); 69 bool IsTryingToQuit();
70 70
71 // Starts to collect shutdown traces. On ChromeOS this will start immediately
72 // on AttemptUserExit() and all other systems will start once all tabs are
73 // closed.
74 void StartShutdownTracing();
75
71 } // namespace browser_shutdown 76 } // namespace browser_shutdown
72 77
73 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ 78 #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