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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 void SessionEnding(); | 69 void SessionEnding(); |
70 | 70 |
71 #endif // !defined(OS_ANDROID) | 71 #endif // !defined(OS_ANDROID) |
72 | 72 |
73 // Emits APP_TERMINATING notification. It is guaranteed that the | 73 // Emits APP_TERMINATING notification. It is guaranteed that the |
74 // notification is sent only once. | 74 // notification is sent only once. |
75 void NotifyAppTerminating(); | 75 void NotifyAppTerminating(); |
76 | 76 |
77 // Send out notifications. | 77 // Send out notifications. |
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 // |always_reboot| is used on ChromeOS to signal that a reboot is required, even |
80 // if a system update is not available. This is useful if, for example, a | |
81 // component flash update was applied. | |
Nico
2016/12/02 01:20:07
Consider using enums instead of bools. Writing
Greg K
2016/12/03 00:05:42
I agree about the enumeration. That being said, I
| |
82 void NotifyAndTerminate(bool fast_path, bool always_reboot = false); | |
80 | 83 |
81 #if !defined(OS_ANDROID) | 84 #if !defined(OS_ANDROID) |
82 // Called once the application is exiting. | 85 // Called once the application is exiting. |
83 void OnAppExiting(); | 86 void OnAppExiting(); |
84 | 87 |
85 // Called once the application is exiting to do any platform specific | 88 // Called once the application is exiting to do any platform specific |
86 // processing required. | 89 // processing required. |
87 void HandleAppExitingForPlatform(); | 90 void HandleAppExitingForPlatform(); |
88 #endif // !defined(OS_ANDROID) | 91 #endif // !defined(OS_ANDROID) |
89 | 92 |
90 } // namespace chrome | 93 } // namespace chrome |
91 | 94 |
92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 95 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
OLD | NEW |