Ken Rockot | 13051c93 | 2019-11-14 20:11:51 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CONTENT_CHILD_BROWSER_EXPOSED_CHILD_INTERFACES_H_ |
| 6 | #define CONTENT_CHILD_BROWSER_EXPOSED_CHILD_INTERFACES_H_ |
| 7 | |
| 8 | #include "base/memory/scoped_refptr.h" |
| 9 | |
| 10 | namespace base { |
| 11 | class SequencedTaskRunner; |
| 12 | } |
| 13 | |
| 14 | namespace mojo { |
| 15 | class BinderMap; |
| 16 | } |
| 17 | |
| 18 | namespace content { |
| 19 | |
| 20 | // Populates |*binders| with callbacks to expose interface to the browser |
| 21 | // process from all child processes (including renderers, GPU, service |
| 22 | // processes, etc.). Interfaces exposed here can be acquired in the browser via |
| 23 | // |RenderProcessHost::BindReceiver()| or |ChildProcessHost::BindReceiver()|. |
| 24 | void ExposeChildInterfacesToBrowser( |
| 25 | scoped_refptr<base::SequencedTaskRunner> io_task_runner, |
| 26 | mojo::BinderMap* binders); |
| 27 | |
| 28 | } // namespace content |
| 29 | |
| 30 | #endif // CONTENT_CHILD_BROWSER_EXPOSED_CHILD_INTERFACES_H_ |