Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: content/browser/mojo/mojo_child_connection.h

Issue 1776513003: Allow client process information to be passed via Connector::Connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MOJO_MOJO_CHILD_CONNECTION_H_
6 #define CONTENT_BROWSER_MOJO_MOJO_CHILD_CONNECTION_H_
7
8 #include <string>
9
10 #include "base/process/process_handle.h"
11 #include "mojo/shell/public/interfaces/shell.mojom.h"
12
13 namespace mojo {
14 class Connection;
15 }
16
17 namespace content {
18
19 class RenderProcessHost;
20
21 // Establish a mojo::Connection to the child process, using a pipe created for
22 // that purpose. Returns a token that should be passed to the child process and
23 // exchanged for a pipe there. That pipe can in turn be passed to
24 // MojoShellConnectionImpl::BindToMessagePipe() to initialize the child's
25 // shell connection.
26 std::string MojoConnectToChild(int child_process_id,
27 int instance_id,
28 RenderProcessHost* render_process_host);
29
30 // Returns a mojo connection to the provided render process host. This
31 // connection was opened when MojoConnectToChild() was called.
32 mojo::Connection* GetMojoConnection(RenderProcessHost* render_process_host);
33
34 } // namespace content
35
36 #endif // CONTENT_BROWSER_MOJO_MOJO_CHILD_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/browser/mojo/mojo_child_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698