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

Unified Diff: content/common/in_process_child_thread_params.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/mojo/mojo_application.cc ('k') | content/common/in_process_child_thread_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/in_process_child_thread_params.h
diff --git a/content/common/in_process_child_thread_params.h b/content/common/in_process_child_thread_params.h
index 73838db02d576b49d8c6a0497dc0465ae53d3f90..f96060bd50b49106c83678f1941acc2895f2208f 100644
--- a/content/common/in_process_child_thread_params.h
+++ b/content/common/in_process_child_thread_params.h
@@ -22,7 +22,8 @@ class CONTENT_EXPORT InProcessChildThreadParams {
InProcessChildThreadParams(
const std::string& channel_name,
scoped_refptr<base::SequencedTaskRunner> io_runner,
- mojo::MessagePipeHandle handle = mojo::MessagePipeHandle());
+ mojo::MessagePipeHandle handle = mojo::MessagePipeHandle(),
+ const std::string& application_token = std::string());
InProcessChildThreadParams(const InProcessChildThreadParams& other);
~InProcessChildThreadParams();
@@ -31,11 +32,15 @@ class CONTENT_EXPORT InProcessChildThreadParams {
return io_runner_;
}
mojo::MessagePipeHandle handle() const { return handle_; }
+ const std::string& application_token() const {
+ return application_token_;
+ }
private:
std::string channel_name_;
scoped_refptr<base::SequencedTaskRunner> io_runner_;
mojo::MessagePipeHandle handle_;
+ std::string application_token_;
};
} // namespace content
« no previous file with comments | « content/child/mojo/mojo_application.cc ('k') | content/common/in_process_child_thread_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698