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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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; |
OLD | NEW |