| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * @constructor | 30 * @constructor |
| 31 * @extends {WebInspector.TargetAwareObject} | 31 * @extends {WebInspector.SDKObject} |
| 32 * @implements {WebInspector.ContentProvider} | 32 * @implements {WebInspector.ContentProvider} |
| 33 * @param {!WebInspector.Target} target | 33 * @param {!WebInspector.Target} target |
| 34 * @param {?WebInspector.NetworkRequest} request | 34 * @param {?WebInspector.NetworkRequest} request |
| 35 * @param {string} url | 35 * @param {string} url |
| 36 * @param {string} documentURL | 36 * @param {string} documentURL |
| 37 * @param {!PageAgent.FrameId} frameId | 37 * @param {!PageAgent.FrameId} frameId |
| 38 * @param {!NetworkAgent.LoaderId} loaderId | 38 * @param {!NetworkAgent.LoaderId} loaderId |
| 39 * @param {!WebInspector.ResourceType} type | 39 * @param {!WebInspector.ResourceType} type |
| 40 * @param {string} mimeType | 40 * @param {string} mimeType |
| 41 * @param {boolean=} isHidden | 41 * @param {boolean=} isHidden |
| 42 */ | 42 */ |
| 43 WebInspector.Resource = function(target, request, url, documentURL, frameId, loa
derId, type, mimeType, isHidden) | 43 WebInspector.Resource = function(target, request, url, documentURL, frameId, loa
derId, type, mimeType, isHidden) |
| 44 { | 44 { |
| 45 WebInspector.TargetAwareObject.call(this, target); | 45 WebInspector.SDKObject.call(this, target); |
| 46 this._request = request; | 46 this._request = request; |
| 47 this.url = url; | 47 this.url = url; |
| 48 this._documentURL = documentURL; | 48 this._documentURL = documentURL; |
| 49 this._frameId = frameId; | 49 this._frameId = frameId; |
| 50 this._loaderId = loaderId; | 50 this._loaderId = loaderId; |
| 51 this._type = type || WebInspector.resourceTypes.Other; | 51 this._type = type || WebInspector.resourceTypes.Other; |
| 52 this._mimeType = mimeType; | 52 this._mimeType = mimeType; |
| 53 this._isHidden = isHidden; | 53 this._isHidden = isHidden; |
| 54 | 54 |
| 55 /** @type {?string} */ this._content; | 55 /** @type {?string} */ this._content; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 }, | 373 }, |
| 374 | 374 |
| 375 /** | 375 /** |
| 376 * @return {boolean} | 376 * @return {boolean} |
| 377 */ | 377 */ |
| 378 isHidden: function() | 378 isHidden: function() |
| 379 { | 379 { |
| 380 return !!this._isHidden; | 380 return !!this._isHidden; |
| 381 }, | 381 }, |
| 382 | 382 |
| 383 __proto__: WebInspector.TargetAwareObject.prototype | 383 __proto__: WebInspector.SDKObject.prototype |
| 384 } | 384 } |
| 385 | 385 |
| OLD | NEW |