OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import json | 4 import json |
5 import logging | 5 import logging |
6 import socket | 6 import socket |
7 import sys | 7 import sys |
8 | 8 |
9 from telemetry import inspector_console | 9 from telemetry import inspector_console |
10 from telemetry import inspector_page | 10 from telemetry import inspector_page |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 OnConsoleNotification, OnConsoleClose) | 289 OnConsoleNotification, OnConsoleClose) |
290 """ | 290 """ |
291 assert domain_name not in self._domain_handlers | 291 assert domain_name not in self._domain_handlers |
292 self._domain_handlers[domain_name] = (notification_handler, | 292 self._domain_handlers[domain_name] = (notification_handler, |
293 will_close_handler) | 293 will_close_handler) |
294 | 294 |
295 def UnregisterDomain(self, domain_name): | 295 def UnregisterDomain(self, domain_name): |
296 """Unregisters a previously registered domain.""" | 296 """Unregisters a previously registered domain.""" |
297 assert domain_name in self._domain_handlers | 297 assert domain_name in self._domain_handlers |
298 self._domain_handlers.pop(domain_name) | 298 self._domain_handlers.pop(domain_name) |
OLD | NEW |