Lines Matching refs:Resource
152 _addResourceToFrame: function(resource)
154 var frameId = resource.frameId;
160 if (resourcesForFrame[resource.url] === resource) {
165 resourcesForFrame[resource.url] = resource;
166 this._bindResourceURL(resource);
167 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, resource);
177 var resource = this.resourceForURL(msg.url);
178 if (!resource)
183 resource.warnings += msg.repeatDelta;
186 resource.errors += msg.repeatDelta;
190 var view = WebInspector.ResourceView.resourceViewForResource(resource);
197 function callback(resource)
199 resource.clearErrorsAndWarnings();
209 _bindResourceURL: function(resource)
211 this._resourcesByURL[resource.url] = resource;
235 var resource = resourcesForFrame[url];
236 if (resource.loaderId === loaderToPreserveId) {
237 preservedResourcesForFrame[url] = resource;
240 this._unbindResourceURL(resource);
266 _unbindResourceURL: function(resource)
268 delete this._resourcesByURL[resource.url];
275 // Create frame resource.
277 frameResource.type = WebInspector.Resource.Type.Document;
292 var resource = this._createResource(framePayload, subresource.url);
293 resource.type = WebInspector.Resource.Type[subresource.type];
294 resource.finished = true;
295 this._addResourceToFrame(resource);
302 var resource = new WebInspector.Resource(null, url);
303 resource.frameId = frame.id;
304 resource.loaderId = frame.loaderId;
305 resource.documentURL = frame.url;
306 return resource;