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

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

Issue 2094903002: [Devtools] Fixed websocket initiators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Flaky fixes Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 476 }
477 } 477 }
478 networkRequest.localizedFailDescription = localizedDescription; 478 networkRequest.localizedFailDescription = localizedDescription;
479 this._finishNetworkRequest(networkRequest, time, -1); 479 this._finishNetworkRequest(networkRequest, time, -1);
480 }, 480 },
481 481
482 /** 482 /**
483 * @override 483 * @override
484 * @param {!NetworkAgent.RequestId} requestId 484 * @param {!NetworkAgent.RequestId} requestId
485 * @param {string} requestURL 485 * @param {string} requestURL
486 * @param {!NetworkAgent.Initiator=} initiator
486 */ 487 */
487 webSocketCreated: function(requestId, requestURL) 488 webSocketCreated: function(requestId, requestURL, initiator)
488 { 489 {
489 // FIXME: WebSocket MUST have initiator info. 490 var networkRequest = new WebInspector.NetworkRequest(this._manager._targ et, requestId, requestURL, "", "", "", initiator || null);
490 var networkRequest = new WebInspector.NetworkRequest(this._manager._targ et, requestId, requestURL, "", "", "", null);
491 networkRequest.setResourceType(WebInspector.resourceTypes.WebSocket); 491 networkRequest.setResourceType(WebInspector.resourceTypes.WebSocket);
492 this._startNetworkRequest(networkRequest); 492 this._startNetworkRequest(networkRequest);
493 }, 493 },
494 494
495 /** 495 /**
496 * @override 496 * @override
497 * @param {!NetworkAgent.RequestId} requestId 497 * @param {!NetworkAgent.RequestId} requestId
498 * @param {!NetworkAgent.Timestamp} time 498 * @param {!NetworkAgent.Timestamp} time
499 * @param {!NetworkAgent.Timestamp} wallTime 499 * @param {!NetworkAgent.Timestamp} wallTime
500 * @param {!NetworkAgent.WebSocketRequest} request 500 * @param {!NetworkAgent.WebSocketRequest} request
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 WebInspector.ResourceLoader.load(url, headers, callback); 934 WebInspector.ResourceLoader.load(url, headers, callback);
935 }, 935 },
936 936
937 __proto__: WebInspector.Object.prototype 937 __proto__: WebInspector.Object.prototype
938 } 938 }
939 939
940 /** 940 /**
941 * @type {!WebInspector.MultitargetNetworkManager} 941 * @type {!WebInspector.MultitargetNetworkManager}
942 */ 942 */
943 WebInspector.multitargetNetworkManager; 943 WebInspector.multitargetNetworkManager;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698