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

Unified Diff: mojo/application/content_handler_factory.cc

Issue 1979683002: ApplicationConnection devolution, part 2.4. (Closed) Base URL: https://github.com/domokit/mojo.git@work795_app_conn_devo_2.3-x-work794_app_conn_devo_2.2
Patch Set: so much doh 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 | « mojo/application/content_handler_factory.h ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/content_handler_factory.cc
diff --git a/mojo/application/content_handler_factory.cc b/mojo/application/content_handler_factory.cc
index 34c0ee48bb28b14291dfe3364b0730317a731bde..b3c7a265652fec4fb2d829c48f4e90d55989408f 100644
--- a/mojo/application/content_handler_factory.cc
+++ b/mojo/application/content_handler_factory.cc
@@ -113,10 +113,22 @@ class ContentHandlerImpl : public ContentHandler {
} // namespace
ContentHandlerFactory::ContentHandlerFactory(Delegate* delegate)
- : delegate_(delegate) {
+ : delegate_(delegate) {}
+
+ContentHandlerFactory::~ContentHandlerFactory() {}
+
+void ContentHandlerFactory::Create(
+ const ConnectionContext& connection_context,
+ InterfaceRequest<ContentHandler> content_handler_request) {
+ new ContentHandlerImpl(delegate_, content_handler_request.Pass());
}
-ContentHandlerFactory::~ContentHandlerFactory() {
+ServiceProviderImpl::InterfaceRequestHandler<ContentHandler>
+ContentHandlerFactory::GetInterfaceRequestHandler() {
+ return [this](const ConnectionContext& connection_context,
+ InterfaceRequest<ContentHandler> content_handler_request) {
+ Create(connection_context, content_handler_request.Pass());
+ };
}
void ContentHandlerFactory::ManagedDelegate::RunApplication(
@@ -129,9 +141,4 @@ void ContentHandlerFactory::ManagedDelegate::RunApplication(
loop.Run();
}
-void ContentHandlerFactory::Create(const ConnectionContext& connection_context,
- InterfaceRequest<ContentHandler> request) {
- new ContentHandlerImpl(delegate_, request.Pass());
-}
-
} // namespace mojo
« no previous file with comments | « mojo/application/content_handler_factory.h ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698