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

Unified Diff: ash/common/shutdown_controller.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ash/common/shell_observer.h ('k') | ash/common/shutdown_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shutdown_controller.h
diff --git a/ash/common/shutdown_controller.h b/ash/common/shutdown_controller.h
deleted file mode 100644
index 266af118d607e3923ec2739ed7719e759739792e..0000000000000000000000000000000000000000
--- a/ash/common/shutdown_controller.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 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_COMMON_SHUTDOWN_CONTROLLER_H_
-#define ASH_COMMON_SHUTDOWN_CONTROLLER_H_
-
-#include "ash/ash_export.h"
-#include "ash/public/interfaces/shutdown.mojom.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-
-namespace ash {
-
-// Handles actual device shutdown by making requests to powerd over D-Bus.
-// Caches the DeviceRebootOnShutdown device policy sent from Chrome over mojo.
-class ASH_EXPORT ShutdownController
- : NON_EXPORTED_BASE(public mojom::ShutdownController) {
- public:
- ShutdownController();
- ~ShutdownController() override;
-
- bool reboot_on_shutdown() const { return reboot_on_shutdown_; }
-
- // Shuts down or reboots based on the current DeviceRebootOnShutdown policy.
- // Does not trigger the shutdown fade-out animation. For animated shutdown
- // use WmShell::RequestShutdown(). Virtual for testing.
- virtual void ShutDownOrReboot();
-
- // Binds the mojom::ShutdownController interface request to this object.
- void BindRequest(mojom::ShutdownControllerRequest request);
-
- private:
- // mojom::ShutdownController:
- void SetRebootOnShutdown(bool reboot_on_shutdown) override;
-
- // Cached copy of the DeviceRebootOnShutdown policy from chrome.
- bool reboot_on_shutdown_ = false;
-
- // Bindings for the ShutdownController interface.
- mojo::BindingSet<mojom::ShutdownController> bindings_;
-
- DISALLOW_COPY_AND_ASSIGN(ShutdownController);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHUTDOWN_CONTROLLER_H_
« no previous file with comments | « ash/common/shell_observer.h ('k') | ash/common/shutdown_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698