Index: third_party/mojo/src/mojo/public/python/mojo_application/application_delegate.py |
diff --git a/third_party/mojo/src/mojo/public/python/mojo_application/application_delegate.py b/third_party/mojo/src/mojo/public/python/mojo_application/application_delegate.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4a817d968940bc091a12b0f3ecc26aad97d2562 |
--- /dev/null |
+++ b/third_party/mojo/src/mojo/public/python/mojo_application/application_delegate.py |
@@ -0,0 +1,27 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+"""Interface for the delegate of ApplicationImpl.""" |
+ |
+import mojo_application.application_impl |
+import mojo_application.service_provider_impl |
+import shell_mojom |
+ |
+import mojo_system |
+ |
+# pylint: disable=unused-argument |
+class ApplicationDelegate: |
+ def Initialize(self, shell, application): |
+ """ |
+ Called from ApplicationImpl's Initialize() method. |
+ """ |
+ pass |
+ |
+ def OnAcceptConnection(self, service_provider, requestor_url, |
+ exposed_services): |
+ """ |
+ Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool |
+ indicating whether this connection should be accepted. |
+ """ |
+ return True |