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

Side by Side Diff: Source/devtools/front_end/sdk/Target.js

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments and rebase Created 5 years, 8 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 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {Protocol.Agents} 9 * @extends {Protocol.Agents}
10 * @param {string} name 10 * @param {string} name
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 this.workerManager = !this.isDedicatedWorker() ? new WebInspector.Worker Manager(this) : null; 140 this.workerManager = !this.isDedicatedWorker() ? new WebInspector.Worker Manager(this) : null;
141 /** @type {!WebInspector.CPUProfilerModel} */ 141 /** @type {!WebInspector.CPUProfilerModel} */
142 this.cpuProfilerModel = new WebInspector.CPUProfilerModel(this); 142 this.cpuProfilerModel = new WebInspector.CPUProfilerModel(this);
143 /** @type {!WebInspector.HeapProfilerModel} */ 143 /** @type {!WebInspector.HeapProfilerModel} */
144 this.heapProfilerModel = new WebInspector.HeapProfilerModel(this); 144 this.heapProfilerModel = new WebInspector.HeapProfilerModel(this);
145 /** @type {!WebInspector.LayerTreeModel} */ 145 /** @type {!WebInspector.LayerTreeModel} */
146 this.layerTreeModel = new WebInspector.LayerTreeModel(this); 146 this.layerTreeModel = new WebInspector.LayerTreeModel(this);
147 /** @type {!WebInspector.AnimationModel} */ 147 /** @type {!WebInspector.AnimationModel} */
148 this.animationModel = new WebInspector.AnimationModel(this); 148 this.animationModel = new WebInspector.AnimationModel(this);
149 149
150 if (this._parentTarget && this._parentTarget.isServiceWorker()) {
151 /** @type {!WebInspector.ServiceWorkerCacheModel} */
152 this.serviceWorkerCacheModel = new WebInspector.ServiceWorkerCacheMo del(this);
153 }
154
155 this.tracingManager = new WebInspector.TracingManager(this); 150 this.tracingManager = new WebInspector.TracingManager(this);
156 151
157 if (this.isPage() && (Runtime.experiments.isEnabled("serviceWorkersInPag eFrontend") || Runtime.experiments.isEnabled("serviceWorkersInResources"))) 152 if (this.isPage() && (Runtime.experiments.isEnabled("serviceWorkersInPag eFrontend") || Runtime.experiments.isEnabled("serviceWorkersInResources")))
158 this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(th is); 153 this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(th is);
159 154
160 if (callback) 155 if (callback)
161 callback(this); 156 callback(this);
162 }, 157 },
163 158
164 /** 159 /**
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 { 218 {
224 WebInspector.targetManager.removeTarget(this); 219 WebInspector.targetManager.removeTarget(this);
225 this._dispose(); 220 this._dispose();
226 }, 221 },
227 222
228 _dispose: function() 223 _dispose: function()
229 { 224 {
230 this.debuggerModel.dispose(); 225 this.debuggerModel.dispose();
231 this.networkManager.dispose(); 226 this.networkManager.dispose();
232 this.cpuProfilerModel.dispose(); 227 this.cpuProfilerModel.dispose();
233 if (this.serviceWorkerCacheModel) 228 WebInspector.ServiceWorkerCacheModel.fromTarget(this).dispose();
234 this.serviceWorkerCacheModel.dispose();
235 if (this.workerManager) 229 if (this.workerManager)
236 this.workerManager.dispose(); 230 this.workerManager.dispose();
237 }, 231 },
238 232
239 /** 233 /**
240 * @return {boolean} 234 * @return {boolean}
241 */ 235 */
242 isDetached: function() 236 isDetached: function()
243 { 237 {
244 return this._connection.isClosed(); 238 return this._connection.isClosed();
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 /** 604 /**
611 * @param {!WebInspector.Target} target 605 * @param {!WebInspector.Target} target
612 */ 606 */
613 targetRemoved: function(target) { }, 607 targetRemoved: function(target) { },
614 } 608 }
615 609
616 /** 610 /**
617 * @type {!WebInspector.TargetManager} 611 * @type {!WebInspector.TargetManager}
618 */ 612 */
619 WebInspector.targetManager = new WebInspector.TargetManager(); 613 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698