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 "content/common/service_manager/service_manager_connection_impl.h" | 5 #include "content/common/service_manager/service_manager_connection_impl.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 registry->set_default_binder(default_browser_binder_); | 266 registry->set_default_binder(default_browser_binder_); |
267 registry->AddConnectionLostClosure( | 267 registry->AddConnectionLostClosure( |
268 base::Bind(&IOThreadContext::OnBrowserConnectionLost, this)); | 268 base::Bind(&IOThreadContext::OnBrowserConnectionLost, this)); |
269 return true; | 269 return true; |
270 } | 270 } |
271 | 271 |
272 // If no filters were interested, reject the connection. | 272 // If no filters were interested, reject the connection. |
273 return accept; | 273 return accept; |
274 } | 274 } |
275 | 275 |
276 bool OnStop() override { | 276 bool OnServiceManagerConnectionLost() override { |
277 ClearConnectionFiltersOnIOThread(); | 277 ClearConnectionFiltersOnIOThread(); |
278 callback_task_runner_->PostTask(FROM_HERE, stop_callback_); | 278 callback_task_runner_->PostTask(FROM_HERE, stop_callback_); |
279 return true; | 279 return true; |
280 } | 280 } |
281 | 281 |
282 ///////////////////////////////////////////////////////////////////////////// | 282 ///////////////////////////////////////////////////////////////////////////// |
283 // service_manager::InterfaceFactory<service_manager::mojom::ServiceFactory> | 283 // service_manager::InterfaceFactory<service_manager::mojom::ServiceFactory> |
284 // implementation | 284 // implementation |
285 | 285 |
286 void Create(const service_manager::Identity& remote_identity, | 286 void Create(const service_manager::Identity& remote_identity, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 534 |
535 void ServiceManagerConnectionImpl::GetInterface( | 535 void ServiceManagerConnectionImpl::GetInterface( |
536 service_manager::mojom::InterfaceProvider* provider, | 536 service_manager::mojom::InterfaceProvider* provider, |
537 const std::string& interface_name, | 537 const std::string& interface_name, |
538 mojo::ScopedMessagePipeHandle request_handle) { | 538 mojo::ScopedMessagePipeHandle request_handle) { |
539 provider->GetInterface(interface_name, std::move(request_handle)); | 539 provider->GetInterface(interface_name, std::move(request_handle)); |
540 } | 540 } |
541 | 541 |
542 } // namespace content | 542 } // namespace content |
543 | 543 |
OLD | NEW |