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 os | 4 import os |
5 | 5 |
6 from telemetry import temporary_http_server | 6 from telemetry import temporary_http_server |
7 from telemetry import browser_credentials | 7 from telemetry import browser_credentials |
8 from telemetry import wpr_modes | 8 from telemetry import wpr_modes |
9 from telemetry import wpr_server | 9 from telemetry import wpr_server |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 @property | 44 @property |
45 def is_content_shell(self): | 45 def is_content_shell(self): |
46 """Returns whether this browser is a content shell, only.""" | 46 """Returns whether this browser is a content shell, only.""" |
47 return self._backend.is_content_shell | 47 return self._backend.is_content_shell |
48 | 48 |
49 @property | 49 @property |
50 def supports_tab_control(self): | 50 def supports_tab_control(self): |
51 return self._backend.supports_tab_control | 51 return self._backend.supports_tab_control |
52 | 52 |
53 @property | 53 @property |
| 54 def extensions(self): |
| 55 return self._backend.extensions |
| 56 |
| 57 @property |
54 def tabs(self): | 58 def tabs(self): |
55 return self._backend.tabs | 59 return self._backend.tabs |
56 | 60 |
57 @property | 61 @property |
58 def supports_tracing(self): | 62 def supports_tracing(self): |
59 return self._backend.supports_tracing | 63 return self._backend.supports_tracing |
60 | 64 |
61 def StartTracing(self): | 65 def StartTracing(self): |
62 return self._backend.StartTracing() | 66 return self._backend.StartTracing() |
63 | 67 |
64 def StopTracing(self): | 68 def StopTracing(self): |
65 return self._backend.StopTracing() | 69 return self._backend.StopTracing() |
66 | 70 |
67 def GetTrace(self): | 71 def GetTrace(self): |
68 return self._backend.GetTrace() | 72 return self._backend.GetTrace() |
69 | 73 |
| 74 def ConnectToExtensionPage(self, extension_id): |
| 75 return self._backend.ConnectToExtensionPage(self, extension_id) |
| 76 |
| 77 def ConnectToPageByUrl(self, url): |
| 78 return self._backend.ConnectToPageByUrl(self, url) |
| 79 |
70 def Close(self): | 80 def Close(self): |
71 """Closes this browser.""" | 81 """Closes this browser.""" |
72 if self._wpr_server: | 82 if self._wpr_server: |
73 self._wpr_server.Close() | 83 self._wpr_server.Close() |
74 self._wpr_server = None | 84 self._wpr_server = None |
75 | 85 |
76 if self._http_server: | 86 if self._http_server: |
77 self._http_server.Close() | 87 self._http_server.Close() |
78 self._http_server = None | 88 self._http_server = None |
79 | 89 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 self._wpr_server = wpr_server.ReplayServer( | 130 self._wpr_server = wpr_server.ReplayServer( |
121 self._backend, | 131 self._backend, |
122 archive_path, | 132 archive_path, |
123 use_record_mode, | 133 use_record_mode, |
124 self._backend.WEBPAGEREPLAY_HOST, | 134 self._backend.WEBPAGEREPLAY_HOST, |
125 self._backend.WEBPAGEREPLAY_HTTP_PORT, | 135 self._backend.WEBPAGEREPLAY_HTTP_PORT, |
126 self._backend.WEBPAGEREPLAY_HTTPS_PORT) | 136 self._backend.WEBPAGEREPLAY_HTTPS_PORT) |
127 | 137 |
128 def GetStandardOutput(self): | 138 def GetStandardOutput(self): |
129 return self._backend.GetStandardOutput() | 139 return self._backend.GetStandardOutput() |
OLD | NEW |