OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 * @param {string} eventName | 1101 * @param {string} eventName |
1102 * @param {string} eventId | 1102 * @param {string} eventId |
1103 * @param {string} data | 1103 * @param {string} data |
1104 */ | 1104 */ |
1105 addEventSourceMessage(time, eventName, eventId, data) { | 1105 addEventSourceMessage(time, eventName, eventId, data) { |
1106 var message = {time: this.pseudoWallTime(time), eventName: eventName, eventI
d: eventId, data: data}; | 1106 var message = {time: this.pseudoWallTime(time), eventName: eventName, eventI
d: eventId, data: data}; |
1107 this._eventSourceMessages.push(message); | 1107 this._eventSourceMessages.push(message); |
1108 this.dispatchEventToListeners(SDK.NetworkRequest.Events.EventSourceMessageAd
ded, message); | 1108 this.dispatchEventToListeners(SDK.NetworkRequest.Events.EventSourceMessageAd
ded, message); |
1109 } | 1109 } |
1110 | 1110 |
1111 replayXHR() { | |
1112 this._networkManager.target().networkAgent().replayXHR(this._requestId); | |
1113 } | |
1114 | |
1115 /** | 1111 /** |
1116 * @return {!SDK.NetworkManager} | 1112 * @return {!SDK.NetworkManager} |
1117 */ | 1113 */ |
1118 networkManager() { | 1114 networkManager() { |
1119 return this._networkManager; | 1115 return this._networkManager; |
1120 } | 1116 } |
1121 }; | 1117 }; |
1122 | 1118 |
1123 /** @enum {symbol} */ | 1119 /** @enum {symbol} */ |
1124 SDK.NetworkRequest.Events = { | 1120 SDK.NetworkRequest.Events = { |
(...skipping 23 matching lines...) Expand all Loading... |
1148 Send: 'send', | 1144 Send: 'send', |
1149 Receive: 'receive', | 1145 Receive: 'receive', |
1150 Error: 'error' | 1146 Error: 'error' |
1151 }; | 1147 }; |
1152 | 1148 |
1153 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ | 1149 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ |
1154 SDK.NetworkRequest.WebSocketFrame; | 1150 SDK.NetworkRequest.WebSocketFrame; |
1155 | 1151 |
1156 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ | 1152 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ |
1157 SDK.NetworkRequest.EventSourceMessage; | 1153 SDK.NetworkRequest.EventSourceMessage; |
OLD | NEW |