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

Side by Side Diff: Source/devtools/front_end/sdk/NetworkManager.js

Issue 1324073003: DevTools: expose initial priority of a resource request in Network.requestWillBeSent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 (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
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
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;
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/devtools/front_end/sdk/NetworkRequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698