| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_KEEP_ALIVE_TYPES_H_ | 5 #ifndef CHROME_BROWSER_LIFETIME_KEEP_ALIVE_TYPES_H_ |
| 6 #define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_TYPES_H_ | 6 #define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_TYPES_H_ |
| 7 | 7 |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 | 9 |
| 10 // Types here are used to register KeepAlives. | 10 // Types here are used to register KeepAlives. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 PANEL, | 36 PANEL, |
| 37 PANEL_VIEW, | 37 PANEL_VIEW, |
| 38 PROFILE_LOADER, | 38 PROFILE_LOADER, |
| 39 USER_MANAGER_VIEW | 39 USER_MANAGER_VIEW |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Restart: Allow Chrome to restart when all the registered KeepAlives allow | 42 // Restart: Allow Chrome to restart when all the registered KeepAlives allow |
| 43 // restarts | 43 // restarts |
| 44 enum class KeepAliveRestartOption { DISABLED, ENABLED }; | 44 enum class KeepAliveRestartOption { DISABLED, ENABLED }; |
| 45 | 45 |
| 46 #ifndef NDEBUG | 46 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) |
| 47 std::ostream& operator<<(std::ostream& out, const KeepAliveOrigin& origin); | 47 std::ostream& operator<<(std::ostream& out, const KeepAliveOrigin& origin); |
| 48 std::ostream& operator<<(std::ostream& out, | 48 std::ostream& operator<<(std::ostream& out, |
| 49 const KeepAliveRestartOption& restart); | 49 const KeepAliveRestartOption& restart); |
| 50 #endif // ndef NDEBUG | 50 #endif |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_TYPES_H_ | 52 #endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_TYPES_H_ |
| OLD | NEW |