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

Unified Diff: third_party/mojo/src/mojo/public/python/mojo_application/application_delegate.py

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/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

Powered by Google App Engine
This is Rietveld 408576698