Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: ash/system/chromeos/power/suspend_observer.h

Issue 26692002: chromeos: More power-related cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/power/suspend_observer.h
diff --git a/ash/system/chromeos/power/suspend_observer.h b/ash/system/chromeos/power/suspend_observer.h
deleted file mode 100644
index 17cc931da67f5131f41407b09bfccd18187b2784..0000000000000000000000000000000000000000
--- a/ash/system/chromeos/power/suspend_observer.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 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 ASH_SYSTEM_CHROMEOS_POWER_SUSPEND_OBSERVER_H_
-#define ASH_SYSTEM_CHROMEOS_POWER_SUSPEND_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "chromeos/dbus/power_manager_client.h"
-#include "chromeos/dbus/session_manager_client.h"
-
-namespace ash {
-namespace internal {
-
-// A class to observe suspend events.
-class SuspendObserver : public chromeos::PowerManagerClient::Observer,
- public chromeos::SessionManagerClient::Observer {
- public:
- // This class registers/unregisters itself as an observer in ctor/dtor.
- SuspendObserver();
- virtual ~SuspendObserver();
-
- // chromeos::PowerManagerClient::Observer override.
- virtual void SuspendImminent() OVERRIDE;
-
- // chromeos::SessionManagerClient::Observer overrides.
- virtual void ScreenIsLocked() OVERRIDE;
- virtual void ScreenIsUnlocked() OVERRIDE;
-
- private:
- chromeos::PowerManagerClient* power_client_; // not owned
- chromeos::SessionManagerClient* session_client_; // not owned
-
- // Is the screen currently locked?
- bool screen_locked_;
-
- // If set, called when the lock screen has been shown to confirm that the
- // system is ready to be suspended.
- base::Closure screen_lock_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(SuspendObserver);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_SYSTEM_CHROMEOS_POWER_SUSPEND_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698