OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/child_connection.h" | 5 #include "content/common/service_manager/child_connection.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/common/service_manager_connection.h" | 11 #include "content/public/common/service_manager_connection.h" |
12 #include "mojo/edk/embedder/embedder.h" | 12 #include "mojo/edk/embedder/embedder.h" |
13 #include "mojo/public/cpp/system/message_pipe.h" | 13 #include "mojo/public/cpp/system/message_pipe.h" |
14 #include "services/shell/public/cpp/connector.h" | 14 #include "services/service_manager/public/cpp/connector.h" |
15 #include "services/shell/public/cpp/identity.h" | 15 #include "services/service_manager/public/cpp/identity.h" |
16 #include "services/shell/public/cpp/interface_registry.h" | 16 #include "services/service_manager/public/cpp/interface_registry.h" |
17 #include "services/shell/public/interfaces/service.mojom.h" | 17 #include "services/service_manager/public/interfaces/service.mojom.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 void CallBinderOnTaskRunner( | 23 void CallBinderOnTaskRunner( |
24 const shell::InterfaceRegistry::Binder& binder, | 24 const shell::InterfaceRegistry::Binder& binder, |
25 scoped_refptr<base::SequencedTaskRunner> task_runner, | 25 scoped_refptr<base::SequencedTaskRunner> task_runner, |
26 const std::string& interface_name, | 26 const std::string& interface_name, |
27 mojo::ScopedMessagePipeHandle request_handle) { | 27 mojo::ScopedMessagePipeHandle request_handle) { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 ChildConnection::~ChildConnection() { | 145 ChildConnection::~ChildConnection() { |
146 context_->ShutDown(); | 146 context_->ShutDown(); |
147 } | 147 } |
148 | 148 |
149 void ChildConnection::SetProcessHandle(base::ProcessHandle handle) { | 149 void ChildConnection::SetProcessHandle(base::ProcessHandle handle) { |
150 context_->SetProcessHandle(handle); | 150 context_->SetProcessHandle(handle); |
151 } | 151 } |
152 | 152 |
153 } // namespace content | 153 } // namespace content |
OLD | NEW |