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

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

Issue 2543113002: [Devtools] Fixed frontend to properly support optional requestWillBeSent (Closed)
Patch Set: [Devtools] Fixed frontend to properly support optional requestWillBeSent Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if (!redirectResponse) 319 if (!redirectResponse)
320 return; 320 return;
321 this.responseReceived(requestId, frameId, loaderId, time, Protocol.Page.Re sourceType.Other, redirectResponse); 321 this.responseReceived(requestId, frameId, loaderId, time, Protocol.Page.Re sourceType.Other, redirectResponse);
322 networkRequest = this._appendRedirect(requestId, time, request.url); 322 networkRequest = this._appendRedirect(requestId, time, request.url);
323 } else { 323 } else {
324 networkRequest = this._createNetworkRequest(requestId, frameId, loaderId, request.url, documentURL, initiator); 324 networkRequest = this._createNetworkRequest(requestId, frameId, loaderId, request.url, documentURL, initiator);
325 } 325 }
326 networkRequest.hasNetworkData = true; 326 networkRequest.hasNetworkData = true;
327 this._updateNetworkRequestWithRequest(networkRequest, request); 327 this._updateNetworkRequestWithRequest(networkRequest, request);
328 networkRequest.setIssueTime(time, wallTime); 328 networkRequest.setIssueTime(time, wallTime);
329 networkRequest.setResourceType(Common.resourceTypes[resourceType]); 329 networkRequest.setResourceType(
330 resourceType ? Common.resourceTypes[resourceType] : Protocol.Page.Resour ceType.Other);
330 331
331 this._startNetworkRequest(networkRequest); 332 this._startNetworkRequest(networkRequest);
332 } 333 }
333 334
334 /** 335 /**
335 * @override 336 * @override
336 * @param {!Protocol.Network.RequestId} requestId 337 * @param {!Protocol.Network.RequestId} requestId
337 */ 338 */
338 requestServedFromCache(requestId) { 339 requestServedFromCache(requestId) {
339 var networkRequest = this._inflightRequestsById[requestId]; 340 var networkRequest = this._inflightRequestsById[requestId];
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 SDK.MultitargetNetworkManager.Events = { 887 SDK.MultitargetNetworkManager.Events = {
887 ConditionsChanged: Symbol('ConditionsChanged'), 888 ConditionsChanged: Symbol('ConditionsChanged'),
888 UserAgentChanged: Symbol('UserAgentChanged') 889 UserAgentChanged: Symbol('UserAgentChanged')
889 }; 890 };
890 891
891 892
892 /** 893 /**
893 * @type {!SDK.MultitargetNetworkManager} 894 * @type {!SDK.MultitargetNetworkManager}
894 */ 895 */
895 SDK.multitargetNetworkManager; 896 SDK.multitargetNetworkManager;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698