Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: telemetry/telemetry/internal/browser/tab.py

Issue 3018603002: Add tab.StopAllServiceWorkers() (Closed)
Patch Set: edit comment Created 3 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698