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

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

Issue 1719193003: Add a user id parameter to connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
Index: mojo/shell/public/cpp/shell_client.h
diff --git a/mojo/shell/public/cpp/shell_client.h b/mojo/shell/public/cpp/shell_client.h
index 7bd129800eaace86cd5dcaafb95c620f2bd4616c..b7a8e0e66ca3b81543603c79482a817446b904a4 100644
--- a/mojo/shell/public/cpp/shell_client.h
+++ b/mojo/shell/public/cpp/shell_client.h
@@ -26,10 +26,15 @@ class ShellClient {
virtual ~ShellClient();
// Called once a bidirectional connection with the shell has been established.
- // |url| is the URL used to start the application. |id| is a unique identifier
- // the shell uses to identify this specific instance of the application.
+ // |url| is the URL used to start the application.
+ // |id| is a unique identifier the shell uses to identify this specific
+ // instance of the application.
+ // |user_id| identifies the user this instance is run as.
// Called exactly once before any other method.
- virtual void Initialize(Shell* shell, const std::string& url, uint32_t id);
+ virtual void Initialize(Shell* shell,
+ const std::string& url,
+ uint32_t id,
+ uint32_t user_id = 0);
// Called when a connection to this client is brokered by the shell. Override
// to expose services to the remote application. Return true if the connection

Powered by Google App Engine
This is Rietveld 408576698