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

Unified Diff: mojo/shell/public/cpp/connector.h

Issue 1776513003: Allow client process information to be passed via Connector::Connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « mojo/shell/connect_params.h ('k') | mojo/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/connector.h
diff --git a/mojo/shell/public/cpp/connector.h b/mojo/shell/public/cpp/connector.h
index 804eb03dcf559bdc4856622c7acc69e3877b0aad..73a6ef48a99a703537fd100b52e8d92432b1e512 100644
--- a/mojo/shell/public/cpp/connector.h
+++ b/mojo/shell/public/cpp/connector.h
@@ -8,6 +8,8 @@
#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/identity.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
+#include "mojo/shell/public/interfaces/shell.mojom.h"
+#include "mojo/shell/public/interfaces/shell_client_factory.mojom.h"
namespace mojo {
@@ -37,9 +39,23 @@ class Connector {
const Identity& target() { return target_; }
void set_target(const Identity& target) { target_ = target; }
+ void set_client_process_connection(
+ shell::mojom::ShellClientFactoryPtr shell_client_factory,
+ shell::mojom::PIDReceiverRequest pid_receiver_request) {
+ shell_client_factory_ = std::move(shell_client_factory);
+ pid_receiver_request_ = std::move(pid_receiver_request);
+ }
+ void TakeClientProcessConnection(
+ shell::mojom::ShellClientFactoryPtr* shell_client_factory,
+ shell::mojom::PIDReceiverRequest* pid_receiver_request) {
+ *shell_client_factory = std::move(shell_client_factory_);
+ *pid_receiver_request = std::move(pid_receiver_request_);
+ }
private:
Identity target_;
+ shell::mojom::ShellClientFactoryPtr shell_client_factory_;
+ shell::mojom::PIDReceiverRequest pid_receiver_request_;
DISALLOW_COPY_AND_ASSIGN(ConnectParams);
};
« no previous file with comments | « mojo/shell/connect_params.h ('k') | mojo/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698