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

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

Issue 1578473002: Pass application ids via AcceptConnection & ConnectToApplication callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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/application_connection.h ('k') | mojo/shell/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/application_impl.h
diff --git a/mojo/shell/public/cpp/application_impl.h b/mojo/shell/public/cpp/application_impl.h
index 3853bab61dd1e85078ba2d92aad435376dca0c24..662cfda0242ca812972a00fb424576f9e53d301a 100644
--- a/mojo/shell/public/cpp/application_impl.h
+++ b/mojo/shell/public/cpp/application_impl.h
@@ -110,6 +110,7 @@ class ApplicationImpl : public Application {
Shell* shell() const { return shell_.get(); }
const std::string& url() const { return url_; }
+ uint32_t id() const { return id_; }
AppLifetimeHelper* app_lifetime_helper() { return &app_lifetime_helper_; }
@@ -146,8 +147,11 @@ class ApplicationImpl : public Application {
private:
// Application implementation.
- void Initialize(ShellPtr shell, const mojo::String& url) override;
+ void Initialize(ShellPtr shell,
+ const mojo::String& url,
+ uint32_t id) override;
void AcceptConnection(const String& requestor_url,
+ uint32_t requestor_id,
InterfaceRequest<ServiceProvider> services,
ServiceProviderPtr exposed_services,
Array<String> allowed_interfaces,
@@ -173,6 +177,7 @@ class ApplicationImpl : public Application {
Binding<Application> binding_;
ShellPtr shell_;
std::string url_;
+ uint32_t id_;
Closure termination_closure_;
AppLifetimeHelper app_lifetime_helper_;
bool quit_requested_;
« no previous file with comments | « mojo/shell/public/cpp/application_connection.h ('k') | mojo/shell/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698