Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / power / idle_action_warning_observer.h
blob79ff07dffd52b8d0470f7bfd376d1af25771bf58
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chromeos/dbus/power_manager_client.h"
12 namespace chromeos {
14 class IdleActionWarningDialogView;
16 // Listens for notifications that the idle action is imminent and shows a
17 // warning dialog to the user.
18 class IdleActionWarningObserver : public PowerManagerClient::Observer {
19 public:
20 IdleActionWarningObserver();
21 ~IdleActionWarningObserver() override;
23 // PowerManagerClient::Observer:
24 void IdleActionImminent(
25 const base::TimeDelta& time_until_idle_action) override;
26 void IdleActionDeferred() override;
28 private:
29 IdleActionWarningDialogView* warning_dialog_; // Not owned.
31 DISALLOW_COPY_AND_ASSIGN(IdleActionWarningObserver);
34 } // namespace chromeos
36 #endif // CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_OBSERVER_H_