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

Side by Side Diff: mojo/application/content_handler_factory.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/application/content_handler_factory.h" 5 #include "mojo/application/content_handler_factory.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void ContentHandlerFactory::ManagedDelegate::RunApplication( 122 void ContentHandlerFactory::ManagedDelegate::RunApplication(
123 InterfaceRequest<Application> application_request, 123 InterfaceRequest<Application> application_request,
124 URLResponsePtr response) { 124 URLResponsePtr response) {
125 base::MessageLoop loop(common::MessagePumpMojo::Create()); 125 base::MessageLoop loop(common::MessagePumpMojo::Create());
126 auto application = 126 auto application =
127 this->CreateApplication(application_request.Pass(), response.Pass()); 127 this->CreateApplication(application_request.Pass(), response.Pass());
128 if (application) 128 if (application)
129 loop.Run(); 129 loop.Run();
130 } 130 }
131 131
132 void ContentHandlerFactory::Create(ApplicationConnection* connection, 132 void ContentHandlerFactory::Create(const ConnectionContext& connection_context,
133 InterfaceRequest<ContentHandler> request) { 133 InterfaceRequest<ContentHandler> request) {
134 new ContentHandlerImpl(delegate_, request.Pass()); 134 new ContentHandlerImpl(delegate_, request.Pass());
135 } 135 }
136 136
137 } // namespace mojo 137 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/application/content_handler_factory.h ('k') | mojo/public/cpp/application/interface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698