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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js

Issue 1960663003: DevTools: introduce the Clear storage pane in the resources panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests fixed Created 4 years, 7 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.ServiceWorkersView = function() 10 WebInspector.ServiceWorkersView = function()
(...skipping 11 matching lines...) Expand all
22 WebInspector.targetManager.observeTargets(this); 22 WebInspector.targetManager.observeTargets(this);
23 } 23 }
24 24
25 WebInspector.ServiceWorkersView.prototype = { 25 WebInspector.ServiceWorkersView.prototype = {
26 /** 26 /**
27 * @override 27 * @override
28 * @param {!WebInspector.Target} target 28 * @param {!WebInspector.Target} target
29 */ 29 */
30 targetAdded: function(target) 30 targetAdded: function(target)
31 { 31 {
32 if (this._target) 32 if (this._target || !target.serviceWorkerManager)
33 return; 33 return;
34 this._target = target; 34 this._target = target;
35 this._manager = this._target.serviceWorkerManager; 35 this._manager = this._target.serviceWorkerManager;
36 36
37 var forceUpdate = new WebInspector.ToolbarCheckbox(WebInspector.UIString ("Force update on reload"), WebInspector.UIString("Force update Service Worker o n page reload"), this._manager.forceUpdateOnReloadSetting()); 37 var forceUpdate = new WebInspector.ToolbarCheckbox(WebInspector.UIString ("Force update on reload"), WebInspector.UIString("Force update Service Worker o n page reload"), this._manager.forceUpdateOnReloadSetting());
38 this._toolbar.appendToolbarItem(forceUpdate); 38 this._toolbar.appendToolbarItem(forceUpdate);
39 var fallbackToNetwork = new WebInspector.ToolbarCheckbox(WebInspector.UI String("Bypass worker for network"), WebInspector.UIString("Bypass Service Worke r and load resources from the network"), target.networkManager.bypassServiceWork erSetting()); 39 var fallbackToNetwork = new WebInspector.ToolbarCheckbox(WebInspector.UI String("Bypass worker for network"), WebInspector.UIString("Bypass Service Worke r and load resources from the network"), target.networkManager.bypassServiceWork erSetting());
40 this._toolbar.appendToolbarItem(fallbackToNetwork); 40 this._toolbar.appendToolbarItem(fallbackToNetwork);
41 this._toolbar.appendSpacer(); 41 this._toolbar.appendSpacer();
42 this._showAllCheckbox = new WebInspector.ToolbarCheckbox(WebInspector.UI String("Show all"), WebInspector.UIString("Show all Service Workers regardless o f the origin")); 42 this._showAllCheckbox = new WebInspector.ToolbarCheckbox(WebInspector.UI String("Show all"), WebInspector.UIString("Show all Service Workers regardless o f the origin"));
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 return contentElement; 387 return contentElement;
388 }, 388 },
389 389
390 _dispose: function() 390 _dispose: function()
391 { 391 {
392 this._linkifier.dispose(); 392 this._linkifier.dispose();
393 if (this._pendingUpdate) 393 if (this._pendingUpdate)
394 clearTimeout(this._pendingUpdate); 394 clearTimeout(this._pendingUpdate);
395 } 395 }
396 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698