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

Unified Diff: chrome/browser/lifetime/keep_alive_state_observer.h

Issue 1725883002: Add KeepAliveStateObserver, add the Restart option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KeepAlive
Patch Set: Address comments Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/lifetime/keep_alive_registry_unittest.cc ('k') | chrome/browser/lifetime/keep_alive_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/lifetime/keep_alive_state_observer.h
diff --git a/chrome/browser/lifetime/keep_alive_state_observer.h b/chrome/browser/lifetime/keep_alive_state_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e959b11982c93906598fc745ff3aebf2922e09b
--- /dev/null
+++ b/chrome/browser/lifetime/keep_alive_state_observer.h
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
+#define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
+
+struct KeepAliveOptions;
+
+class KeepAliveStateObserver {
+ public:
+ virtual void OnKeepAliveRestartStateChanged(bool can_restart) = 0;
+
+ protected:
+ virtual ~KeepAliveStateObserver() {}
+};
+
+#endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
« no previous file with comments | « chrome/browser/lifetime/keep_alive_registry_unittest.cc ('k') | chrome/browser/lifetime/keep_alive_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698