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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" |
13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/threading/simple_thread.h" | 16 #include "base/threading/simple_thread.h" |
16 #include "mojo/public/cpp/bindings/binding_set.h" | 17 #include "mojo/public/cpp/bindings/binding_set.h" |
17 #include "services/service_manager/public/c/main.h" | 18 #include "services/service_manager/public/c/main.h" |
18 #include "services/service_manager/public/cpp/connector.h" | 19 #include "services/service_manager/public/cpp/connector.h" |
19 #include "services/service_manager/public/cpp/interface_factory.h" | 20 #include "services/service_manager/public/cpp/interface_factory.h" |
20 #include "services/service_manager/public/cpp/interface_registry.h" | 21 #include "services/service_manager/public/cpp/interface_registry.h" |
21 #include "services/service_manager/public/cpp/service.h" | 22 #include "services/service_manager/public/cpp/service.h" |
22 #include "services/service_manager/public/cpp/service_context.h" | 23 #include "services/service_manager/public/cpp/service_context.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 DISALLOW_COPY_AND_ASSIGN(ConnectTestService); | 233 DISALLOW_COPY_AND_ASSIGN(ConnectTestService); |
233 }; | 234 }; |
234 | 235 |
235 } // namespace service_manager | 236 } // namespace service_manager |
236 | 237 |
237 MojoResult ServiceMain(MojoHandle service_request_handle) { | 238 MojoResult ServiceMain(MojoHandle service_request_handle) { |
238 service_manager::ServiceRunner runner( | 239 service_manager::ServiceRunner runner( |
239 new service_manager::ConnectTestService); | 240 new service_manager::ConnectTestService); |
240 return runner.Run(service_request_handle); | 241 return runner.Run(service_request_handle); |
241 } | 242 } |
OLD | NEW |