blob: b22b24b9dd93bfb1ef3f9f5abd340f9cdf46a65f [file] [log] [blame]
// Copyright 2012 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <base/observer_list_types.h>
namespace power_manager::policy {
class SuspendDelayController;
class SuspendDelayObserver : public base::CheckedObserver {
~SuspendDelayObserver() override = default;
// 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. If in dark resume, also waits for a
// minimum delay in anticipation of external monitor enumeration.
virtual void OnReadyForSuspend(SuspendDelayController* controller,
int suspend_id) = 0;
} // namespace power_manager::policy