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

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: 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 this.workerManager = !this.isDedicatedWorker() ? new WebInspector.Worker Manager(this) : null; 146 this.workerManager = !this.isDedicatedWorker() ? new WebInspector.Worker Manager(this) : null;
147 /** @type {!WebInspector.CPUProfilerModel} */ 147 /** @type {!WebInspector.CPUProfilerModel} */
148 this.cpuProfilerModel = new WebInspector.CPUProfilerModel(this); 148 this.cpuProfilerModel = new WebInspector.CPUProfilerModel(this);
149 /** @type {!WebInspector.HeapProfilerModel} */ 149 /** @type {!WebInspector.HeapProfilerModel} */
150 this.heapProfilerModel = new WebInspector.HeapProfilerModel(this); 150 this.heapProfilerModel = new WebInspector.HeapProfilerModel(this);
151 /** @type {!WebInspector.LayerTreeModel} */ 151 /** @type {!WebInspector.LayerTreeModel} */
152 this.layerTreeModel = new WebInspector.LayerTreeModel(this); 152 this.layerTreeModel = new WebInspector.LayerTreeModel(this);
153 /** @type {!WebInspector.AnimationModel} */ 153 /** @type {!WebInspector.AnimationModel} */
154 this.animationModel = new WebInspector.AnimationModel(this); 154 this.animationModel = new WebInspector.AnimationModel(this);
155 155
156 if (this._parentTarget && this._parentTarget.isServiceWorker()) {
157 /** @type {!WebInspector.ServiceWorkerCacheModel} */
158 this.serviceWorkerCacheModel = new WebInspector.ServiceWorkerCacheMo del(this);
159 }
160
161 this.tracingManager = new WebInspector.TracingManager(this); 156 this.tracingManager = new WebInspector.TracingManager(this);
162 157
163 if (this.isPage() && (Runtime.experiments.isEnabled("serviceWorkersInPag eFrontend") || Runtime.experiments.isEnabled("serviceWorkersInResources"))) 158 if (this.isPage() && (Runtime.experiments.isEnabled("serviceWorkersInPag eFrontend") || Runtime.experiments.isEnabled("serviceWorkersInResources")))
164 this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(th is); 159 this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(th is);
165 160
166 if (callback) 161 if (callback)
167 callback(this); 162 callback(this);
168 }, 163 },
169 164
170 /** 165 /**
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 { 240 {
246 WebInspector.targetManager.removeTarget(this); 241 WebInspector.targetManager.removeTarget(this);
247 this._dispose(); 242 this._dispose();
248 }, 243 },
249 244
250 _dispose: function() 245 _dispose: function()
251 { 246 {
252 this.debuggerModel.dispose(); 247 this.debuggerModel.dispose();
253 this.networkManager.dispose(); 248 this.networkManager.dispose();
254 this.cpuProfilerModel.dispose(); 249 this.cpuProfilerModel.dispose();
255 if (this.serviceWorkerCacheModel) 250 WebInspector.ServiceWorkerCacheModel.fromTarget(this).dispose();
256 this.serviceWorkerCacheModel.dispose();
257 if (this.workerManager) 251 if (this.workerManager)
258 this.workerManager.dispose(); 252 this.workerManager.dispose();
259 }, 253 },
260 254
261 /** 255 /**
262 * @return {boolean} 256 * @return {boolean}
263 */ 257 */
264 isDetached: function() 258 isDetached: function()
265 { 259 {
266 return this._connection.isClosed(); 260 return this._connection.isClosed();
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 /** 594 /**
601 * @param {!WebInspector.Target} target 595 * @param {!WebInspector.Target} target
602 */ 596 */
603 targetRemoved: function(target) { }, 597 targetRemoved: function(target) { },
604 } 598 }
605 599
606 /** 600 /**
607 * @type {!WebInspector.TargetManager} 601 * @type {!WebInspector.TargetManager}
608 */ 602 */
609 WebInspector.targetManager = new WebInspector.TargetManager(); 603 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698