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

Side by Side Diff: ash/wm/shutdown_client_proxy.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 ASH_WM_SHUTDOWN_CLIENT_PROXY_H_
6 #define ASH_WM_SHUTDOWN_CLIENT_PROXY_H_
7
8 #include "ash/public/interfaces/shutdown.mojom.h"
9 #include "base/macros.h"
10
11 namespace service_manager {
12 class Connector;
13 }
14
15 namespace ash {
16
17 // A ShutdownClientProxy which lazily connects to an exported
18 // mojom::ShutdownClient in "service:content_browser" on each use. This exists
19 // so we can mock this interface.
20 class ShutdownClientProxy : public mojom::ShutdownClient {
21 public:
22 ShutdownClientProxy(service_manager::Connector* connector);
James Cook 2016/11/02 20:20:04 nit: explicit
Elliot Glaysher 2016/11/02 21:45:16 Done.
23 ~ShutdownClientProxy() override;
24
25 // mojom::ShutdownClient:
26 void RequestShutdown() override;
27
28 private:
29 service_manager::Connector* connector_;
30
31 DISALLOW_COPY_AND_ASSIGN(ShutdownClientProxy);
32 };
33
34 } // namespace ash
35
36 #endif // ASH_WM_SHUTDOWN_CLIENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698