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

Side by Side Diff: mojo/public/python/mojo_application/application_delegate.py

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Interface for the delegate of ApplicationImpl.""" 5 """Interface for the delegate of ApplicationImpl."""
6 6
7 import mojo_application.application_impl 7 import mojo_application.application_impl
8 import mojo_application.service_provider_impl 8 import mojo_application.service_provider_impl
9 import shell_mojom 9 import shell_mojom
10 10
11 import mojo_system 11 import mojo_system
12 12
13 # pylint: disable=unused-argument 13 # pylint: disable=unused-argument
14 class ApplicationDelegate: 14 class ApplicationDelegate:
15 def Initialize(self, shell, application): 15 def Initialize(self, shell, application):
16 """ 16 """
17 Called from ApplicationImpl's Initialize() method. 17 Called from ApplicationImpl's Initialize() method.
18 """ 18 """
19 pass 19 pass
20 20
21 def OnAcceptConnection(self, service_provider, requestor_url, 21 def OnAcceptConnection(self, service_provider, requestor_url,
22 exposed_services): 22 exposed_services, resolved_url):
23 """ 23 """
24 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool 24 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool
25 indicating whether this connection should be accepted. 25 indicating whether this connection should be accepted.
26 """ 26 """
27 return True 27 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698