OLD | NEW |
---|---|
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 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 // For ChromeOS, also request session manager to end the session. | 78 // For ChromeOS, also request session manager to end the session. |
79 void NotifyAndTerminate(bool fast_path); | 79 void NotifyAndTerminate(bool fast_path); |
80 | 80 |
81 #if !defined(OS_ANDROID) | 81 #if !defined(OS_ANDROID) |
82 // Called once the application is exiting. | 82 // Called once the application is exiting. |
83 void OnAppExiting(); | 83 void OnAppExiting(); |
84 | 84 |
85 // Called once the application is exiting to do any platform specific | 85 // Called once the application is exiting to do any platform specific |
86 // processing required. | 86 // processing required. |
87 void HandleAppExitingForPlatform(); | 87 void HandleAppExitingForPlatform(); |
88 | |
89 // Calling |AttemptRestart| unconditionally sets some preference to be used | |
sky
2016/07/06 16:55:33
nit: generally | is used for arguments and members
dgn
2016/07/22 15:18:09
Ack.
| |
90 // during the shutdown or start sequences. They normally get reset when they are | |
91 // individually read and used. In case a restart is cancelled, this function | |
92 // should be called to perform that reset. | |
93 void ResetRestartPrefs(); | |
sky
2016/07/06 16:55:33
Can this move to browser_shutdown::SetTryingToQuit
dgn
2016/07/22 15:18:09
Good point, done.
| |
88 #endif // !defined(OS_ANDROID) | 94 #endif // !defined(OS_ANDROID) |
89 | 95 |
90 } // namespace chrome | 96 } // namespace chrome |
91 | 97 |
92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 98 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
OLD | NEW |