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

Unified Diff: mojo/shell/public/cpp/connector.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/connection.h ('k') | mojo/shell/public/cpp/identity.h » ('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 94fdc9aa3b4b059d3447718a24bc5e3e432023e4..be6ba4376276a0e3035666d64a911fa4777a5420 100644
--- a/mojo/shell/public/cpp/connector.h
+++ b/mojo/shell/public/cpp/connector.h
@@ -6,6 +6,7 @@
#define MOJO_SHELL_PUBLIC_CPP_CONNECTOR_H_
#include "mojo/shell/public/cpp/connection.h"
+#include "mojo/shell/public/cpp/identity.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
namespace mojo {
@@ -30,16 +31,15 @@ class Connector {
class ConnectParams {
public:
+ explicit ConnectParams(const Identity& target);
explicit ConnectParams(const std::string& name);
~ConnectParams();
- const std::string& name() { return name_; }
- void set_user_id(const std::string& user_id) { user_id_ = user_id; }
- const std::string& user_id() const { return user_id_; }
+ const Identity& target() { return target_; }
+ void set_target(const Identity& target) { target_ = target; }
private:
- std::string name_;
- std::string user_id_;
+ Identity target_;
DISALLOW_COPY_AND_ASSIGN(ConnectParams);
};
« no previous file with comments | « mojo/shell/public/cpp/connection.h ('k') | mojo/shell/public/cpp/identity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698