OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 /** | 188 /** |
189 * @param {!WebInspector.NetworkRequest} networkRequest | 189 * @param {!WebInspector.NetworkRequest} networkRequest |
190 * @param {!NetworkAgent.Request} request | 190 * @param {!NetworkAgent.Request} request |
191 */ | 191 */ |
192 _updateNetworkRequestWithRequest: function(networkRequest, request) | 192 _updateNetworkRequestWithRequest: function(networkRequest, request) |
193 { | 193 { |
194 networkRequest.requestMethod = request.method; | 194 networkRequest.requestMethod = request.method; |
195 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(request.
headers)); | 195 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(request.
headers)); |
196 networkRequest.requestFormData = request.postData; | 196 networkRequest.requestFormData = request.postData; |
| 197 networkRequest.setInitialPriority(request.initialPriority); |
197 }, | 198 }, |
198 | 199 |
199 /** | 200 /** |
200 * @param {!WebInspector.NetworkRequest} networkRequest | 201 * @param {!WebInspector.NetworkRequest} networkRequest |
201 * @param {!NetworkAgent.Response=} response | 202 * @param {!NetworkAgent.Response=} response |
202 */ | 203 */ |
203 _updateNetworkRequestWithResponse: function(networkRequest, response) | 204 _updateNetworkRequestWithResponse: function(networkRequest, response) |
204 { | 205 { |
205 if (response.url && networkRequest.url !== response.url) | 206 if (response.url && networkRequest.url !== response.url) |
206 networkRequest.url = response.url; | 207 networkRequest.url = response.url; |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 return this._blockedURLs; | 755 return this._blockedURLs; |
755 }, | 756 }, |
756 | 757 |
757 __proto__: WebInspector.Object.prototype | 758 __proto__: WebInspector.Object.prototype |
758 } | 759 } |
759 | 760 |
760 /** | 761 /** |
761 * @type {!WebInspector.MultitargetNetworkManager} | 762 * @type {!WebInspector.MultitargetNetworkManager} |
762 */ | 763 */ |
763 WebInspector.multitargetNetworkManager; | 764 WebInspector.multitargetNetworkManager; |
OLD | NEW |