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

Unified Diff: mojo/application/content_handler_factory.h

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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/application/content_handler_factory.h
diff --git a/mojo/application/content_handler_factory.h b/mojo/application/content_handler_factory.h
index c6b2cd950dd1512824e0abb713a77c6f99e8e369..271655e06c9504d2446b14583bca331ed09aadcf 100644
--- a/mojo/application/content_handler_factory.h
+++ b/mojo/application/content_handler_factory.h
@@ -25,7 +25,9 @@ class ContentHandlerFactory : public InterfaceFactory<ContentHandler> {
virtual ~Delegate() {}
// Implement this method to create the Application. This method will be
// called on a new thread. Leaving this method will quit the application.
- virtual void RunApplication(ShellPtr shell, URLResponsePtr response) = 0;
+ virtual void RunApplication(
+ InterfaceRequest<Application> application_request,
+ URLResponsePtr response) = 0;
};
class ManagedDelegate : public Delegate {
@@ -36,11 +38,12 @@ class ContentHandlerFactory : public InterfaceFactory<ContentHandler> {
// on this new thread, and the returned value will be kept alive until the
// application ends.
virtual scoped_ptr<HandledApplicationHolder> CreateApplication(
- ShellPtr shell,
+ InterfaceRequest<Application> application_request,
URLResponsePtr response) = 0;
private:
- void RunApplication(ShellPtr shell, URLResponsePtr response) override;
+ void RunApplication(InterfaceRequest<Application> application_request,
+ URLResponsePtr response) override;
};
explicit ContentHandlerFactory(Delegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698