summaryrefslogtreecommitdiff
path: root/chromium/components/keep_alive_registry/keep_alive_state_observer.h
blob: 4ae0a9a9c1d41b4813d1efd92c780851b5742286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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 COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_
#define COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_

class KeepAliveStateObserver {
 public:
  virtual void OnKeepAliveStateChanged(bool is_keeping_alive) = 0;
  virtual void OnKeepAliveRestartStateChanged(bool can_restart) = 0;

 protected:
  virtual ~KeepAliveStateObserver() {}
};

#endif  // COMPONENTS_KEEP_ALIVE_REGISTRY_KEEP_ALIVE_STATE_OBSERVER_H_