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

Side by Side Diff: chrome/browser/lifetime/application_lifetime.h

Issue 2039273003: Cleanup: Remove VersionUpdater::RelaunchBrowser interface method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comment. Created 4 years, 6 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/lifetime/application_lifetime.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_LIFETIME_APPLICATION_LIFETIME_H_ 5 #ifndef CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 class Browser; 11 class Browser;
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 // Starts a user initiated exit process. Called from Browser::Exit. 15 // Starts a user initiated exit process. Called from Browser::Exit.
16 // On platforms other than ChromeOS, this is equivalent to 16 // On platforms other than ChromeOS, this is equivalent to
17 // CloseAllBrowsers() On ChromeOS, this tells session manager 17 // CloseAllBrowsers() On ChromeOS, this tells session manager
18 // that chrome is signing out, which lets session manager send 18 // that chrome is signing out, which lets session manager send
19 // SIGTERM to start actual exit process. 19 // SIGTERM to start actual exit process.
20 void AttemptUserExit(); 20 void AttemptUserExit();
21 21
22 // Starts a user initiated restart process. On platforms other than 22 // Starts a user initiated restart process. On platforms other than
23 // chromeos, this sets a restart bit in the preference so that 23 // chromeos, this sets a restart bit in the preference so that
24 // chrome will be restarted at the end of shutdown process. On 24 // chrome will be restarted at the end of shutdown process. On
25 // ChromeOS, this simply exits the chrome, which lets sesssion 25 // ChromeOS, this simply exits the chrome, which lets sesssion
26 // manager re-launch the browser with restore last session flag. 26 // manager re-launch the browser with restore last session flag.
27 void AttemptRestart(); 27 void AttemptRestart();
28 28
29 // Starts a user initiated relaunch process. On platforms other than
30 // chromeos, this is equivalent to AttemptRestart. On ChromeOS, this relaunches
31 // the entire OS, instead of just relaunching the browser.
32 void AttemptRelaunch();
33
29 // Attempt to exit by closing all browsers. This is equivalent to 34 // Attempt to exit by closing all browsers. This is equivalent to
30 // CloseAllBrowsers() on platforms where the application exits 35 // CloseAllBrowsers() on platforms where the application exits
31 // when no more windows are remaining. On other platforms (the Mac), 36 // when no more windows are remaining. On other platforms (the Mac),
32 // this will additionally exit the application if all browsers are 37 // this will additionally exit the application if all browsers are
33 // successfully closed. 38 // successfully closed.
34 // Note that he exit process may be interrupted by download or 39 // Note that he exit process may be interrupted by download or
35 // unload handler, and the browser may or may not exit. 40 // unload handler, and the browser may or may not exit.
36 void AttemptExit(); 41 void AttemptExit();
37 42
38 #if defined(OS_CHROMEOS) 43 #if defined(OS_CHROMEOS)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void OnAppExiting(); 83 void OnAppExiting();
79 84
80 // Called once the application is exiting to do any platform specific 85 // Called once the application is exiting to do any platform specific
81 // processing required. 86 // processing required.
82 void HandleAppExitingForPlatform(); 87 void HandleAppExitingForPlatform();
83 #endif // !defined(OS_ANDROID) 88 #endif // !defined(OS_ANDROID)
84 89
85 } // namespace chrome 90 } // namespace chrome
86 91
87 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698