| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """Interface for the delegate of ApplicationImpl.""" | |
| 6 | |
| 7 import mojo_application.application_impl | |
| 8 import mojo_application.service_provider_impl | |
| 9 import shell_mojom | |
| 10 | |
| 11 import mojo_system | |
| 12 | |
| 13 # pylint: disable=unused-argument | |
| 14 class ApplicationDelegate: | |
| 15 def Initialize(self, shell, application): | |
| 16 """ | |
| 17 Called from ApplicationImpl's Initialize() method. | |
| 18 """ | |
| 19 pass | |
| 20 | |
| 21 def OnAcceptConnection(self, | |
| 22 requestor_url, | |
| 23 resolved_url, | |
| 24 service_provider): | |
| 25 """ | |
| 26 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool | |
| 27 indicating whether this connection should be accepted. | |
| 28 """ | |
| 29 return False | |
| OLD | NEW |