| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 this._issueTime = -1; | 54 this._issueTime = -1; |
| 55 this._startTime = -1; | 55 this._startTime = -1; |
| 56 this._endTime = -1; | 56 this._endTime = -1; |
| 57 | 57 |
| 58 this.statusCode = 0; | 58 this.statusCode = 0; |
| 59 this.statusText = ""; | 59 this.statusText = ""; |
| 60 this.requestMethod = ""; | 60 this.requestMethod = ""; |
| 61 this.requestTime = 0; | 61 this.requestTime = 0; |
| 62 this.protocol = ""; | 62 this.protocol = ""; |
| 63 | 63 |
| 64 /** @type {?NetworkAgent.ResourcePriority} */ |
| 65 this._initialPriority = null; |
| 66 |
| 64 /** @type {!WebInspector.ResourceType} */ | 67 /** @type {!WebInspector.ResourceType} */ |
| 65 this._resourceType = WebInspector.resourceTypes.Other; | 68 this._resourceType = WebInspector.resourceTypes.Other; |
| 66 this._contentEncoded = false; | 69 this._contentEncoded = false; |
| 67 this._pendingContentCallbacks = []; | 70 this._pendingContentCallbacks = []; |
| 68 /** @type {!Array.<!WebInspector.NetworkRequest.WebSocketFrame>} */ | 71 /** @type {!Array.<!WebInspector.NetworkRequest.WebSocketFrame>} */ |
| 69 this._frames = []; | 72 this._frames = []; |
| 70 /** @type {!Array.<!WebInspector.NetworkRequest.EventSourceMessage>} */ | 73 /** @type {!Array.<!WebInspector.NetworkRequest.EventSourceMessage>} */ |
| 71 this._eventSourceMessages = []; | 74 this._eventSourceMessages = []; |
| 72 | 75 |
| 73 this._responseHeaderValues = {}; | 76 this._responseHeaderValues = {}; |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 | 931 |
| 929 /** | 932 /** |
| 930 * @return {boolean} | 933 * @return {boolean} |
| 931 */ | 934 */ |
| 932 hasErrorStatusCode: function() | 935 hasErrorStatusCode: function() |
| 933 { | 936 { |
| 934 return this.statusCode >= 400; | 937 return this.statusCode >= 400; |
| 935 }, | 938 }, |
| 936 | 939 |
| 937 /** | 940 /** |
| 941 * @param {!NetworkAgent.ResourcePriority} priority |
| 942 */ |
| 943 setInitialPriority: function(priority) |
| 944 { |
| 945 this._initialPriority = priority; |
| 946 }, |
| 947 |
| 948 /** |
| 949 * @return {?NetworkAgent.ResourcePriority} |
| 950 */ |
| 951 initialPriority: function() |
| 952 { |
| 953 return this._initialPriority; |
| 954 }, |
| 955 |
| 956 /** |
| 938 * @param {!Element} image | 957 * @param {!Element} image |
| 939 */ | 958 */ |
| 940 populateImageSource: function(image) | 959 populateImageSource: function(image) |
| 941 { | 960 { |
| 942 WebInspector.Resource.populateImageSource(this._url, this._mimeType, thi
s, image); | 961 WebInspector.Resource.populateImageSource(this._url, this._mimeType, thi
s, image); |
| 943 }, | 962 }, |
| 944 | 963 |
| 945 /** | 964 /** |
| 946 * @return {?string} | 965 * @return {?string} |
| 947 */ | 966 */ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1130 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
| 1112 }, | 1131 }, |
| 1113 | 1132 |
| 1114 replayXHR: function() | 1133 replayXHR: function() |
| 1115 { | 1134 { |
| 1116 this.target().networkAgent().replayXHR(this.requestId); | 1135 this.target().networkAgent().replayXHR(this.requestId); |
| 1117 }, | 1136 }, |
| 1118 | 1137 |
| 1119 __proto__: WebInspector.SDKObject.prototype | 1138 __proto__: WebInspector.SDKObject.prototype |
| 1120 } | 1139 } |
| OLD | NEW |