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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
6 #define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
7
8 #include "base/macros.h"
9
10 struct KeepAliveOptions;
11
12 class KeepAliveStateObserver {
13 public:
14 virtual void OnRestartAllowed() = 0;
sky 2016/02/26 22:13:25 How about an OnKeepAliveRestartStateChanged(bool c
dgn 2016/03/09 16:35:31 Yes done. I started with split methods as my curre
15 virtual void OnRestartForbidden() = 0;
16
17 protected:
18 KeepAliveStateObserver() {}
sky 2016/02/26 22:13:25 nit: I don't think you need this.
dgn 2016/03/09 16:35:31 Removed.
19 virtual ~KeepAliveStateObserver() {}
20
21 DISALLOW_COPY_AND_ASSIGN(KeepAliveStateObserver);
sky 2016/02/26 22:13:25 you shouldn't need this as KeepAliveStateObserver
dgn 2016/03/09 16:35:31 Done.
22 };
23
24 #endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698