OLD | NEW |
---|---|
(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_ | |
OLD | NEW |