| OLD | NEW |
| 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, |
| 22 requestor_url, |
| 23 resolved_url, |
| 24 service_provider, |
| 22 exposed_services): | 25 exposed_services): |
| 23 """ | 26 """ |
| 24 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool | 27 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool |
| 25 indicating whether this connection should be accepted. | 28 indicating whether this connection should be accepted. |
| 26 """ | 29 """ |
| 27 return True | 30 return False |
| OLD | NEW |