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

Unified Diff: third_party/mojo/src/mojo/public/cpp/application/application_delegate.h

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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: 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:

Powered by Google App Engine
This is Rietveld 408576698