OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/service_manager/public/cpp/service_context.h" | 5 #include "services/service_manager/public/cpp/service_context.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "mojo/public/cpp/bindings/interface_ptr.h" | 14 #include "mojo/public/cpp/bindings/interface_ptr.h" |
14 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
15 #include "services/service_manager/public/cpp/interface_provider_spec.h" | 16 #include "services/service_manager/public/cpp/interface_provider_spec.h" |
16 #include "services/service_manager/public/cpp/interface_registry.h" | 17 #include "services/service_manager/public/cpp/interface_registry.h" |
17 #include "services/service_manager/public/cpp/lib/connector_impl.h" | 18 #include "services/service_manager/public/cpp/lib/connector_impl.h" |
18 #include "services/service_manager/public/cpp/service.h" | 19 #include "services/service_manager/public/cpp/service.h" |
19 | 20 |
20 namespace service_manager { | 21 namespace service_manager { |
21 | 22 |
22 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 146 } |
146 | 147 |
147 void ServiceContext::DestroyConnectionInterfaceRegistry( | 148 void ServiceContext::DestroyConnectionInterfaceRegistry( |
148 InterfaceRegistry* registry) { | 149 InterfaceRegistry* registry) { |
149 auto it = connection_interface_registries_.find(registry); | 150 auto it = connection_interface_registries_.find(registry); |
150 CHECK(it != connection_interface_registries_.end()); | 151 CHECK(it != connection_interface_registries_.end()); |
151 connection_interface_registries_.erase(it); | 152 connection_interface_registries_.erase(it); |
152 } | 153 } |
153 | 154 |
154 } // namespace service_manager | 155 } // namespace service_manager |
OLD | NEW |