Chromium Code Reviews| Index: chrome/browser/chromeos/power/suspend_observer.h |
| diff --git a/chrome/browser/chromeos/power/suspend_observer.h b/chrome/browser/chromeos/power/suspend_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7629206e1d3a9f47508ccd2010e511cd35d15fe8 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/power/suspend_observer.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright (c) 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 CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |
| + |
| +#include "ash/shell.h" |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "chromeos/dbus/power_manager_client.h" |
| + |
| +namespace chromeos { |
| + |
| +// A class to observe suspend events |
|
Daniel Erat
2013/01/08 00:51:35
nit: add a trailing period
marcheu
2013/01/10 01:03:49
Done.
|
| +class SuspendObserver : public PowerManagerClient::Observer { |
| + public: |
| + // This class registers/unregisters itself as an observer in ctor/dtor. |
| + SuspendObserver(); |
| + virtual ~SuspendObserver(); |
| + |
| + // PowerManagerClient::Observer override. |
| + virtual void SuspendImminent() OVERRIDE; |
|
Daniel Erat
2013/01/08 00:51:35
nit: add a blank line after this one
marcheu
2013/01/10 01:03:49
Done.
|
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SuspendObserver); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |