keep_alive_state_observer.h 606 B

1234567891011121314151617
  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. #ifndef COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_
  5. #define COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_
  6. class KeepAliveStateObserver {
  7. public:
  8. virtual void OnKeepAliveStateChanged(bool is_keeping_alive) = 0;
  9. virtual void OnKeepAliveRestartStateChanged(bool can_restart) = 0;
  10. protected:
  11. virtual ~KeepAliveStateObserver() {}
  12. };
  13. #endif // COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_