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

Unified Diff: mojo/public/cpp/application/application_connection.h

Issue 1973653002: Add a new way of using ServiceProviderImpl without InterfaceFactory. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: RequestHandler -> InterfaceRequestHandler Created 4 years, 7 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 | « no previous file | mojo/public/cpp/application/lib/service_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/application_connection.h
diff --git a/mojo/public/cpp/application/application_connection.h b/mojo/public/cpp/application/application_connection.h
index 3507974d0832f657e4a11885458efb7fe7b9fded..8979d0cf4b81e6a74d4b39ee619e53bc6a67e07b 100644
--- a/mojo/public/cpp/application/application_connection.h
+++ b/mojo/public/cpp/application/application_connection.h
@@ -12,6 +12,7 @@
namespace mojo {
+struct ConnectionContext;
class ServiceConnector;
// Represents a connection to another application. An instance of this class is
@@ -34,6 +35,8 @@ class ServiceConnector;
// connection->AddService<Bar>(&my_foo_and_bar_factory_);
//
// The InterfaceFactory must outlive the ApplicationConnection.
+//
+// TODO(vtl): Don't get too attached to this class. I'm going to remove it.
class ApplicationConnection {
public:
virtual ~ApplicationConnection();
@@ -47,6 +50,8 @@ class ApplicationConnection {
Interface::Name_);
}
+ virtual const ConnectionContext& GetConnectionContext() const = 0;
+
// Returns the URL that was used by the source application to establish a
// connection to the destination application.
//
« no previous file with comments | « no previous file | mojo/public/cpp/application/lib/service_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698