blob: 2306a8253fe21209a3cc6bb3eb438e2f24037417 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS 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 POWER_MANAGER_POWERD_POLICY_SUSPEND_DELAY_OBSERVER_H_
#define POWER_MANAGER_POWERD_POLICY_SUSPEND_DELAY_OBSERVER_H_
namespace power_manager {
namespace policy {
class SuspendDelayController;
class SuspendDelayObserver {
public:
virtual ~SuspendDelayObserver() {}
// Called when all clients that previously registered suspend delays have
// reported that they're ready for the system to be suspended. |suspend_id|
// identifies the current suspend attempt.
virtual void OnReadyForSuspend(SuspendDelayController* controller,
int suspend_id) = 0;
};
} // namespace policy
} // namespace power_manager
#endif // POWER_MANAGER_POWERD_POLICY_SUSPEND_DELAY_OBSERVER_H_