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

Unified Diff: content/public/browser/browser_child_process_host.h

Issue 2019973002: [mojo-edk] Bind a child token to child launches and port reservations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_child_process_host.h
diff --git a/content/public/browser/browser_child_process_host.h b/content/public/browser/browser_child_process_host.h
index 07193afd0cd6e8293d8e12dc77863749eba95f4b..74cf035b6bcd7027f5c164571cd3ec4cb25db0fb 100644
--- a/content/public/browser/browser_child_process_host.h
+++ b/content/public/browser/browser_child_process_host.h
@@ -42,6 +42,14 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
content::ProcessType process_type,
BrowserChildProcessHostDelegate* delegate);
+ // Used to create a child process host, with a unique token to identify the
+ // child process to Mojo. |mojo_child_token| should be a unique string
+ // generated using mojo::edk::GenerateRandomToken().
+ static BrowserChildProcessHost* Create(
+ content::ProcessType process_type,
+ BrowserChildProcessHostDelegate* delegate,
+ const std::string& mojo_child_token);
+
// Returns the child process host with unique id |child_process_id|, or
// nullptr if it doesn't exist. |child_process_id| is NOT the process ID, but
// is the same unique ID as |ChildProcessData::id|.
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/test/render_thread_impl_browser_test_ipc_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698