OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SHUTDOWN_CLIENT_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POWER_SHUTDOWN_CLIENT_IMPL_H_ |
| 7 |
| 8 #include "ash/public/interfaces/shutdown.mojom.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 class ShutdownClientImpl : public ash::mojom::ShutdownClient { |
| 15 public: |
| 16 ShutdownClientImpl(); |
| 17 ~ShutdownClientImpl() override; |
| 18 |
| 19 private: |
| 20 // ash::mojom::ShutdownClient implementation. |
| 21 void RequestShutdown() override; |
| 22 |
| 23 base::WeakPtrFactory<ShutdownClientImpl> weak_factory_; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(ShutdownClientImpl); |
| 26 }; |
| 27 |
| 28 } // namespace chromeos |
| 29 |
| 30 #endif // CHROME_BROWSER_CHROMEOS_POWER_SHUTDOWN_CLIENT_IMPL_H_ |
OLD | NEW |