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/browser/mojo/mojo_child_connection.h" | 5 #include "content/browser/mojo/mojo_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/mojo_shell_connection.h" | 11 #include "content/public/common/mojo_shell_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/shell/public/cpp/connector.h" |
15 #include "services/shell/public/cpp/identity.h" | 15 #include "services/shell/public/cpp/identity.h" |
| 16 #include "services/shell/public/cpp/interface_registry.h" |
16 #include "services/shell/public/interfaces/service.mojom.h" | 17 #include "services/shell/public/interfaces/service.mojom.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 void CallBinderOnTaskRunner( | 23 void CallBinderOnTaskRunner( |
23 const shell::InterfaceRegistry::Binder& binder, | 24 const shell::InterfaceRegistry::Binder& binder, |
24 scoped_refptr<base::SequencedTaskRunner> task_runner, | 25 scoped_refptr<base::SequencedTaskRunner> task_runner, |
25 const mojo::String& interface_name, | 26 const mojo::String& interface_name, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 145 |
145 MojoChildConnection::~MojoChildConnection() { | 146 MojoChildConnection::~MojoChildConnection() { |
146 context_->ShutDown(); | 147 context_->ShutDown(); |
147 } | 148 } |
148 | 149 |
149 void MojoChildConnection::SetProcessHandle(base::ProcessHandle handle) { | 150 void MojoChildConnection::SetProcessHandle(base::ProcessHandle handle) { |
150 context_->SetProcessHandle(handle); | 151 context_->SetProcessHandle(handle); |
151 } | 152 } |
152 | 153 |
153 } // namespace content | 154 } // namespace content |
OLD | NEW |