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

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

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: mojo/public/cpp/application/interface_factory.h
diff --git a/mojo/public/cpp/application/interface_factory.h b/mojo/public/cpp/application/interface_factory.h
index da070080492b6898caa1ae77c06daaae7e28ced3..f459f6f9a8103b419ebb893a27c82eeb28db4c10 100644
--- a/mojo/public/cpp/application/interface_factory.h
+++ b/mojo/public/cpp/application/interface_factory.h
@@ -9,9 +9,7 @@
namespace mojo {
-class ApplicationConnection;
-template <typename Interface>
-class InterfaceRequest;
+struct ConnectionContext;
// Implement this class to provide implementations of a given interface and
// bind them to incoming requests. The implementation of this class is
@@ -21,7 +19,7 @@ template <typename Interface>
class InterfaceFactory {
public:
virtual ~InterfaceFactory() {}
- virtual void Create(ApplicationConnection* connection,
+ virtual void Create(const ConnectionContext& connection_context,
InterfaceRequest<Interface> request) = 0;
};
« no previous file with comments | « mojo/application/content_handler_factory.cc ('k') | mojo/public/cpp/application/lib/interface_factory_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698