OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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 | 4 |
5 from telemetry.internal.actions import action_runner | 5 from telemetry.internal.actions import action_runner |
6 from telemetry.internal.browser import web_contents | 6 from telemetry.internal.browser import web_contents |
7 from telemetry.internal.image_processing import video | 7 from telemetry.internal.image_processing import video |
8 | 8 |
9 DEFAULT_TAB_TIMEOUT = 60 | 9 DEFAULT_TAB_TIMEOUT = 60 |
10 | 10 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 With assigning 'all' to params.storageTypes, Storage.clearDataForOrigin | 279 With assigning 'all' to params.storageTypes, Storage.clearDataForOrigin |
280 clears all storage of app cache, cookies, file systems, indexed db, | 280 clears all storage of app cache, cookies, file systems, indexed db, |
281 local storage, shader cache, web sql, service workers and cache storage. | 281 local storage, shader cache, web sql, service workers and cache storage. |
282 See StorageHandler::ClearDataForOrigin() for more details. | 282 See StorageHandler::ClearDataForOrigin() for more details. |
283 | 283 |
284 Raises: | 284 Raises: |
285 exceptions.StoryActionError | 285 exceptions.StoryActionError |
286 """ | 286 """ |
287 return self._inspector_backend.ClearDataForOrigin(url, timeout) | 287 return self._inspector_backend.ClearDataForOrigin(url, timeout) |
| 288 |
| 289 def StopAllServiceWorkers(self, timeout=DEFAULT_TAB_TIMEOUT): |
| 290 """Stops all service workers. |
| 291 |
| 292 Raises: |
| 293 exceptions.StoryActionError |
| 294 """ |
| 295 return self._inspector_backend.StopAllServiceWorkers(timeout) |
OLD | NEW |