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

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

Issue 1993743004: Add ApplicationImplBase::Bind(). (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
« no previous file with comments | « no previous file | mojo/public/cpp/application/lib/application_impl.cc » ('j') | mojo/ui/content_viewer_app.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/application_impl_base.h
diff --git a/mojo/public/cpp/application/application_impl_base.h b/mojo/public/cpp/application/application_impl_base.h
index 04109d7eefe71e09da09ed52914e449944e859fd..8d3cbf6087f93e9f8f2ae7a150d4996707052489 100644
--- a/mojo/public/cpp/application/application_impl_base.h
+++ b/mojo/public/cpp/application/application_impl_base.h
@@ -31,10 +31,14 @@ class ServiceProviderImpl;
// use this class in the current setup).
class ApplicationImplBase : public Application {
public:
- explicit ApplicationImplBase(
- InterfaceRequest<Application> application_request);
+ ApplicationImplBase();
~ApplicationImplBase() override;
+ // Binds the given |Application| request to this object. This must be done
+ // with the message (run) loop available/running, and this will cause this
+ // object to start serving requests (via that message loop).
+ void Bind(InterfaceRequest<Application> application_request);
+
// Quits the main run loop for this application.
// TODO(vtl): This is implemented in application_runner.cc (for example). Its
// presence here is pretty dubious.
« no previous file with comments | « no previous file | mojo/public/cpp/application/lib/application_impl.cc » ('j') | mojo/ui/content_viewer_app.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698