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

Unified Diff: chrome/browser/chromeos/power/shutdown_client_impl.h

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)
Patch Set: Add bug links + modify other overlay.json file. Created 4 years, 1 month 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: chrome/browser/chromeos/power/shutdown_client_impl.h
diff --git a/chrome/browser/chromeos/power/shutdown_client_impl.h b/chrome/browser/chromeos/power/shutdown_client_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..91f4237727101f88b6bc56263df27a585ec751cd
--- /dev/null
+++ b/chrome/browser/chromeos/power/shutdown_client_impl.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 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_SHUTDOWN_CLIENT_IMPL_H_
+#define CHROME_BROWSER_CHROMEOS_POWER_SHUTDOWN_CLIENT_IMPL_H_
+
+#include "ash/public/interfaces/shutdown.mojom.h"
+#include "base/compiler_specific.h"
James Cook 2016/11/02 20:20:04 Not needed?
Elliot Glaysher 2016/11/02 21:45:16 You're right. Removed.
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+
+namespace chromeos {
+
+class ShutdownClientImpl : public ash::mojom::ShutdownClient {
+ public:
+ ShutdownClientImpl();
+ ~ShutdownClientImpl() override;
+
+ private:
+ // ash::mojom::ShutdownClient implementation.
+ void RequestShutdown() override;
+
+ base::WeakPtrFactory<ShutdownClientImpl> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShutdownClientImpl);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_POWER_SHUTDOWN_CLIENT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698