| 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
|
|
|