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

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: Always use token init. 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..50fdfdf63fb4709259ff03046bb3cbb8fb9c6dc0 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,10 @@ 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();
+
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