blob: c5d6a98592e1c9a2998912a2dcdf0d66908c523b [file] [log] [blame]
Ken Rockot13051c932019-11-14 20:11:511// 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
10namespace base {
11class SequencedTaskRunner;
12}
13
14namespace mojo {
15class BinderMap;
16}
17
18namespace 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()|.
24void 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_