| 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 * @param {string} data | 595 * @param {string} data |
| 596 */ | 596 */ |
| 597 eventSourceMessageReceived(requestId, time, eventName, eventId, data) { | 597 eventSourceMessageReceived(requestId, time, eventName, eventId, data) { |
| 598 var networkRequest = this._inflightRequestsById[requestId]; | 598 var networkRequest = this._inflightRequestsById[requestId]; |
| 599 if (!networkRequest) | 599 if (!networkRequest) |
| 600 return; | 600 return; |
| 601 networkRequest.addEventSourceMessage(time, eventName, eventId, data); | 601 networkRequest.addEventSourceMessage(time, eventName, eventId, data); |
| 602 } | 602 } |
| 603 | 603 |
| 604 /** | 604 /** |
| 605 * @override |
| 606 * @param {!Protocol.Network.InterceptId} requestId |
| 607 * @param {!Protocol.Network.Request} request |
| 608 */ |
| 609 interceptedRequest(requestId, request) { |
| 610 // Stub implementation. Event not currently used by the frontend. |
| 611 } |
| 612 |
| 613 /** |
| 614 * @override |
| 615 * @param {!Protocol.Network.InterceptId} requestId |
| 616 * @param {!Protocol.Network.Headers} responseHeaders |
| 617 * @param {number} responseStatusCode |
| 618 * @param {string} redirectUrl |
| 619 */ |
| 620 interceptedRedirect(requestId, responseHeaders, responseStatusCode, redirectUr
l) { |
| 621 // Stub implementation. Event not currently used by the frontend. |
| 622 } |
| 623 |
| 624 /** |
| 605 * @param {!Protocol.Network.RequestId} requestId | 625 * @param {!Protocol.Network.RequestId} requestId |
| 606 * @param {!Protocol.Network.Timestamp} time | 626 * @param {!Protocol.Network.Timestamp} time |
| 607 * @param {string} redirectURL | 627 * @param {string} redirectURL |
| 608 * @return {!SDK.NetworkRequest} | 628 * @return {!SDK.NetworkRequest} |
| 609 */ | 629 */ |
| 610 _appendRedirect(requestId, time, redirectURL) { | 630 _appendRedirect(requestId, time, redirectURL) { |
| 611 var originalNetworkRequest = this._inflightRequestsById[requestId]; | 631 var originalNetworkRequest = this._inflightRequestsById[requestId]; |
| 612 var previousRedirects = originalNetworkRequest.redirects || []; | 632 var previousRedirects = originalNetworkRequest.redirects || []; |
| 613 originalNetworkRequest.setRequestId(requestId + ':redirected.' + previousRed
irects.length); | 633 originalNetworkRequest.setRequestId(requestId + ':redirected.' + previousRed
irects.length); |
| 614 delete originalNetworkRequest.redirects; | 634 delete originalNetworkRequest.redirects; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 /** @enum {symbol} */ | 902 /** @enum {symbol} */ |
| 883 SDK.MultitargetNetworkManager.Events = { | 903 SDK.MultitargetNetworkManager.Events = { |
| 884 ConditionsChanged: Symbol('ConditionsChanged'), | 904 ConditionsChanged: Symbol('ConditionsChanged'), |
| 885 UserAgentChanged: Symbol('UserAgentChanged') | 905 UserAgentChanged: Symbol('UserAgentChanged') |
| 886 }; | 906 }; |
| 887 | 907 |
| 888 /** | 908 /** |
| 889 * @type {!SDK.MultitargetNetworkManager} | 909 * @type {!SDK.MultitargetNetworkManager} |
| 890 */ | 910 */ |
| 891 SDK.multitargetNetworkManager; | 911 SDK.multitargetNetworkManager; |
| OLD | NEW |