OLD | NEW |
---|---|
(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_ | |
OLD | NEW |