Index: third_party/mojo/src/mojo/public/cpp/application/application_delegate.h |
diff --git a/third_party/mojo/src/mojo/public/cpp/application/application_delegate.h b/third_party/mojo/src/mojo/public/cpp/application/application_delegate.h |
index b0f2916f00d86ca040b9777db71678bc22c469ee..f95dca50ba85863ddee0871766deb8f3cfdbb64f 100644 |
--- a/third_party/mojo/src/mojo/public/cpp/application/application_delegate.h |
+++ b/third_party/mojo/src/mojo/public/cpp/application/application_delegate.h |
@@ -14,21 +14,24 @@ namespace mojo { |
class ApplicationConnection; |
class ApplicationImpl; |
+// An abstract class that the application may subclass to control various |
+// behaviors of ApplicationImpl. |
class ApplicationDelegate { |
public: |
ApplicationDelegate(); |
virtual ~ApplicationDelegate(); |
+ // Called exactly once before any other method. |
virtual void Initialize(ApplicationImpl* app); |
// Override this method to configure what services a connection supports when |
// being connected to from an app. |
- // return false to reject the connection entirely. |
+ // Return false to reject the connection entirely. |
virtual bool ConfigureIncomingConnection(ApplicationConnection* connection); |
// Override this method to configure what services a connection supports when |
// connecting to another app. |
- // return false to reject the connection entirely. |
+ // Return false to reject the connection entirely. |
virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection); |
private: |