OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/macros.h" | 5 #include "base/macros.h" |
6 #include "mojo/public/cpp/bindings/binding_set.h" | 6 #include "mojo/public/cpp/bindings/binding_set.h" |
7 #include "services/shell/public/c/main.h" | 7 #include "services/service_manager/public/c/main.h" |
8 #include "services/shell/public/cpp/interface_factory.h" | 8 #include "services/service_manager/public/cpp/interface_factory.h" |
9 #include "services/shell/public/cpp/interface_registry.h" | 9 #include "services/service_manager/public/cpp/interface_registry.h" |
10 #include "services/shell/public/cpp/service.h" | 10 #include "services/service_manager/public/cpp/service.h" |
11 #include "services/shell/public/cpp/service_runner.h" | 11 #include "services/service_manager/public/cpp/service_runner.h" |
12 #include "services/shell/tests/shutdown/shutdown_unittest.mojom.h" | 12 #include "services/service_manager/tests/shutdown/shutdown_unittest.mojom.h" |
13 | 13 |
14 namespace shell { | 14 namespace shell { |
15 namespace { | 15 namespace { |
16 | 16 |
17 shell::ServiceRunner* g_app = nullptr; | 17 shell::ServiceRunner* g_app = nullptr; |
18 | 18 |
19 class ShutdownServiceApp | 19 class ShutdownServiceApp |
20 : public Service, | 20 : public Service, |
21 public InterfaceFactory<mojom::ShutdownTestService>, | 21 public InterfaceFactory<mojom::ShutdownTestService>, |
22 public mojom::ShutdownTestService { | 22 public mojom::ShutdownTestService { |
(...skipping 26 matching lines...) Expand all Loading... |
49 | 49 |
50 } // namespace | 50 } // namespace |
51 } // namespace shell | 51 } // namespace shell |
52 | 52 |
53 | 53 |
54 MojoResult ServiceMain(MojoHandle service_request_handle) { | 54 MojoResult ServiceMain(MojoHandle service_request_handle) { |
55 shell::ServiceRunner runner(new shell::ShutdownServiceApp); | 55 shell::ServiceRunner runner(new shell::ShutdownServiceApp); |
56 shell::g_app = &runner; | 56 shell::g_app = &runner; |
57 return runner.Run(service_request_handle); | 57 return runner.Run(service_request_handle); |
58 } | 58 } |
OLD | NEW |