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

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

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (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/public/cpp/lib/shell_test.cc ('k') | mojo/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12c444a0e97208b283b2f0618ea73ef0fcf9fd87..5f603161df4421f52b1c18f43edf0aa3b8b275d6 100644
--- a/mojo/shell/public/cpp/shell_client.h
+++ b/mojo/shell/public/cpp/shell_client.h
@@ -10,6 +10,7 @@
#include "mojo/public/cpp/system/macros.h"
#include "mojo/shell/public/cpp/connection.h"
+#include "mojo/shell/public/cpp/identity.h"
namespace mojo {
@@ -26,14 +27,12 @@ class ShellClient {
virtual ~ShellClient();
// Called once a bidirectional connection with the shell has been established.
- // |name| is the name used to start the application.
+ // |identity| is the identity of the instance.
// |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(Connector* connector,
- const std::string& name,
- const std::string& user_id,
+ const Identity& identity,
uint32_t id);
// Called when a connection to this client is brokered by the shell. Override
« no previous file with comments | « mojo/shell/public/cpp/lib/shell_test.cc ('k') | mojo/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698