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

Unified Diff: content/browser/mojo/mojo_application_host.h

Issue 1877743002: Use token-based initialisation for the utility process MojoApplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_application_host.h
diff --git a/content/browser/mojo/mojo_application_host.h b/content/browser/mojo/mojo_application_host.h
index 0d7916fe9763f85464d3b392a11e7128dda38d37..7776d19dccf15a67fa0ef175394330accf656cef 100644
--- a/content/browser/mojo/mojo_application_host.h
+++ b/content/browser/mojo/mojo_application_host.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
#include <memory>
+#include <string>
#include "base/macros.h"
#include "base/process/process_handle.h"
@@ -42,6 +43,14 @@ class CONTENT_EXPORT MojoApplicationHost {
bool Init();
void Activate(IPC::Sender* sender, base::ProcessHandle process_handle);
+ // Use a shared token to initialize the application. Returns a token to pass
+ // to the child process.
+ std::string InitWithToken();
+
+ // Use a message pipe to initialize the application. Used for in-process child
+ // threads.
+ mojo::ScopedMessagePipeHandle InitWithPipe();
Ken Rockot(use gerrit already) 2016/04/11 15:04:18 Did you try simply using the token for the in-proc
Anand Mistry (off Chromium) 2016/04/12 00:31:14 I did separate approaches after chatting with Sam
+
ServiceRegistry* service_registry() { return &service_registry_; }
#if defined(OS_ANDROID)
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698