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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 this._finishNetworkRequest(networkRequest, time, -1); | 451 this._finishNetworkRequest(networkRequest, time, -1); |
452 } | 452 } |
453 | 453 |
454 /** | 454 /** |
455 * @override | 455 * @override |
456 * @param {!Protocol.Network.RequestId} requestId | 456 * @param {!Protocol.Network.RequestId} requestId |
457 * @param {string} requestURL | 457 * @param {string} requestURL |
458 * @param {!Protocol.Network.Initiator=} initiator | 458 * @param {!Protocol.Network.Initiator=} initiator |
459 */ | 459 */ |
460 webSocketCreated(requestId, requestURL, initiator) { | 460 webSocketCreated(requestId, requestURL, initiator) { |
461 var networkRequest = | 461 var networkRequest = new SDK.NetworkRequest(this._manager, requestId, reques
tURL, '', '', '', initiator || null); |
462 new SDK.NetworkRequest(this._manager.target(), requestId, requestURL, ''
, '', '', initiator || null); | |
463 networkRequest.setResourceType(Common.resourceTypes.WebSocket); | 462 networkRequest.setResourceType(Common.resourceTypes.WebSocket); |
464 this._startNetworkRequest(networkRequest); | 463 this._startNetworkRequest(networkRequest); |
465 } | 464 } |
466 | 465 |
467 /** | 466 /** |
468 * @override | 467 * @override |
469 * @param {!Protocol.Network.RequestId} requestId | 468 * @param {!Protocol.Network.RequestId} requestId |
470 * @param {!Protocol.Network.Timestamp} time | 469 * @param {!Protocol.Network.Timestamp} time |
471 * @param {!Protocol.Network.Timestamp} wallTime | 470 * @param {!Protocol.Network.Timestamp} wallTime |
472 * @param {!Protocol.Network.WebSocketRequest} request | 471 * @param {!Protocol.Network.WebSocketRequest} request |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 639 |
641 /** | 640 /** |
642 * @param {!Protocol.Network.RequestId} requestId | 641 * @param {!Protocol.Network.RequestId} requestId |
643 * @param {string} frameId | 642 * @param {string} frameId |
644 * @param {!Protocol.Network.LoaderId} loaderId | 643 * @param {!Protocol.Network.LoaderId} loaderId |
645 * @param {string} url | 644 * @param {string} url |
646 * @param {string} documentURL | 645 * @param {string} documentURL |
647 * @param {?Protocol.Network.Initiator} initiator | 646 * @param {?Protocol.Network.Initiator} initiator |
648 */ | 647 */ |
649 _createNetworkRequest(requestId, frameId, loaderId, url, documentURL, initiato
r) { | 648 _createNetworkRequest(requestId, frameId, loaderId, url, documentURL, initiato
r) { |
650 return new SDK.NetworkRequest(this._manager.target(), requestId, url, docume
ntURL, frameId, loaderId, initiator); | 649 return new SDK.NetworkRequest(this._manager, requestId, url, documentURL, fr
ameId, loaderId, initiator); |
651 } | 650 } |
652 }; | 651 }; |
653 | 652 |
654 /** | 653 /** |
655 * @implements {SDK.TargetManager.Observer} | 654 * @implements {SDK.TargetManager.Observer} |
656 * @unrestricted | 655 * @unrestricted |
657 */ | 656 */ |
658 SDK.MultitargetNetworkManager = class extends Common.Object { | 657 SDK.MultitargetNetworkManager = class extends Common.Object { |
659 constructor() { | 658 constructor() { |
660 super(); | 659 super(); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 SDK.MultitargetNetworkManager.Events = { | 911 SDK.MultitargetNetworkManager.Events = { |
913 BlockedPatternsChanged: Symbol('BlockedPatternsChanged'), | 912 BlockedPatternsChanged: Symbol('BlockedPatternsChanged'), |
914 ConditionsChanged: Symbol('ConditionsChanged'), | 913 ConditionsChanged: Symbol('ConditionsChanged'), |
915 UserAgentChanged: Symbol('UserAgentChanged') | 914 UserAgentChanged: Symbol('UserAgentChanged') |
916 }; | 915 }; |
917 | 916 |
918 /** | 917 /** |
919 * @type {!SDK.MultitargetNetworkManager} | 918 * @type {!SDK.MultitargetNetworkManager} |
920 */ | 919 */ |
921 SDK.multitargetNetworkManager; | 920 SDK.multitargetNetworkManager; |
OLD | NEW |