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

Unified Diff: content/child/mojo/mojo_application.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 | « content/child/child_thread_impl.cc ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/mojo/mojo_application.h
diff --git a/content/child/mojo/mojo_application.h b/content/child/mojo/mojo_application.h
index 5303a30bc2e6915cc7a70e6b079d18b4be9dbeac..34812120ba228069064fca6c2f417a9f7ea3241a 100644
--- a/content/child/mojo/mojo_application.h
+++ b/content/child/mojo/mojo_application.h
@@ -5,10 +5,13 @@
#ifndef CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
#define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
+#include <string>
+
#include "base/macros.h"
#include "content/common/mojo/channel_init.h"
#include "content/common/mojo/service_registry_impl.h"
#include "ipc/ipc_platform_file.h"
+#include "mojo/public/cpp/system/message_pipe.h"
namespace base {
class SequencedTaskRunner;
@@ -30,6 +33,10 @@ class MojoApplication {
scoped_refptr<base::SequencedTaskRunner> io_task_runner);
virtual ~MojoApplication();
+ // TODO(amistry): Remove OnMessageReceived() when all bootstrapping has
+ // migrated to these functions.
+ void InitWithToken(std::string token);
+
bool OnMessageReceived(const IPC::Message& msg);
ServiceRegistry* service_registry() { return &service_registry_; }
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698