Index: chrome/browser/lifetime/keep_alive_options.h |
diff --git a/chrome/browser/lifetime/keep_alive_options.h b/chrome/browser/lifetime/keep_alive_options.h |
index 8918912e6a0435505fa81e1841e834af42fe7b45..61e11a0175dbeaef1a254374f202cd10c81636b4 100644 |
--- a/chrome/browser/lifetime/keep_alive_options.h |
+++ b/chrome/browser/lifetime/keep_alive_options.h |
@@ -5,11 +5,17 @@ |
#ifndef CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ |
#define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ |
+// Restart: Allow Chrome to restart when all the registered KeepAlives allow |
+// restarts |
+enum class KeepAliveOptionRestart { DISABLED, ENABLED }; |
dgn
2016/02/23 16:58:46
Should I have an extra member like UNKNOWN that wo
|
+ |
struct KeepAliveOptions { |
// Should be descriptive of what the KeepAlive's lifetime is tied to, to help |
// with debugging. |
const char* label; |
+ const KeepAliveOptionRestart restart; |
+ |
// TODO(dgn) |
// When registering a token, we should add indications of which kind of |
// optimizations are allowed during the KeepAlive's lifetime. This will allow |