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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "mojo/public/cpp/bindings/binding_set.h" | 9 #include "mojo/public/cpp/bindings/binding_set.h" |
10 #include "services/shell/public/c/main.h" | 10 #include "services/service_manager/public/c/main.h" |
11 #include "services/shell/public/cpp/connector.h" | 11 #include "services/service_manager/public/cpp/connector.h" |
12 #include "services/shell/public/cpp/interface_factory.h" | 12 #include "services/service_manager/public/cpp/interface_factory.h" |
13 #include "services/shell/public/cpp/interface_registry.h" | 13 #include "services/service_manager/public/cpp/interface_registry.h" |
14 #include "services/shell/public/cpp/service.h" | 14 #include "services/service_manager/public/cpp/service.h" |
15 #include "services/shell/public/cpp/service_runner.h" | 15 #include "services/service_manager/public/cpp/service_runner.h" |
16 #include "services/shell/public/interfaces/connector.mojom.h" | 16 #include "services/service_manager/public/interfaces/connector.mojom.h" |
17 #include "services/shell/tests/connect/connect_test.mojom.h" | 17 #include "services/service_manager/tests/connect/connect_test.mojom.h" |
18 | 18 |
19 namespace shell { | 19 namespace shell { |
20 | 20 |
21 using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback; | 21 using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback; |
22 | 22 |
23 class ConnectTestClassApp | 23 class ConnectTestClassApp |
24 : public Service, | 24 : public Service, |
25 public InterfaceFactory<test::mojom::ConnectTestService>, | 25 public InterfaceFactory<test::mojom::ConnectTestService>, |
26 public InterfaceFactory<test::mojom::ClassInterface>, | 26 public InterfaceFactory<test::mojom::ClassInterface>, |
27 public test::mojom::ConnectTestService, | 27 public test::mojom::ConnectTestService, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 DISALLOW_COPY_AND_ASSIGN(ConnectTestClassApp); | 87 DISALLOW_COPY_AND_ASSIGN(ConnectTestClassApp); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace shell | 90 } // namespace shell |
91 | 91 |
92 | 92 |
93 MojoResult ServiceMain(MojoHandle service_request_handle) { | 93 MojoResult ServiceMain(MojoHandle service_request_handle) { |
94 shell::ServiceRunner runner(new shell::ConnectTestClassApp); | 94 shell::ServiceRunner runner(new shell::ConnectTestClassApp); |
95 return runner.Run(service_request_handle); | 95 return runner.Run(service_request_handle); |
96 } | 96 } |
OLD | NEW |