| 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 26 matching lines...) Expand all Loading... |
| 37 * @param {!SDK.Target} target | 37 * @param {!SDK.Target} target |
| 38 * @param {string} url | 38 * @param {string} url |
| 39 * @param {string} documentURL | 39 * @param {string} documentURL |
| 40 * @param {!Protocol.Page.FrameId} frameId | 40 * @param {!Protocol.Page.FrameId} frameId |
| 41 * @param {!Protocol.Network.LoaderId} loaderId | 41 * @param {!Protocol.Network.LoaderId} loaderId |
| 42 * @param {?Protocol.Network.Initiator} initiator | 42 * @param {?Protocol.Network.Initiator} initiator |
| 43 */ | 43 */ |
| 44 constructor(target, requestId, url, documentURL, frameId, loaderId, initiator)
{ | 44 constructor(target, requestId, url, documentURL, frameId, loaderId, initiator)
{ |
| 45 super(target); | 45 super(target); |
| 46 | 46 |
| 47 this._networkManager = /** @type {!SDK.NetworkManager} */ (SDK.NetworkManage
r.fromTarget(target)); | 47 this._networkManager = /** @type {!SDK.NetworkManager} */ (target.model(SDK.
NetworkManager)); |
| 48 this._requestId = requestId; | 48 this._requestId = requestId; |
| 49 this.setUrl(url); | 49 this.setUrl(url); |
| 50 this._documentURL = documentURL; | 50 this._documentURL = documentURL; |
| 51 this._frameId = frameId; | 51 this._frameId = frameId; |
| 52 this._loaderId = loaderId; | 52 this._loaderId = loaderId; |
| 53 /** @type {?Protocol.Network.Initiator} */ | 53 /** @type {?Protocol.Network.Initiator} */ |
| 54 this._initiator = initiator; | 54 this._initiator = initiator; |
| 55 this._issueTime = -1; | 55 this._issueTime = -1; |
| 56 this._startTime = -1; | 56 this._startTime = -1; |
| 57 this._endTime = -1; | 57 this._endTime = -1; |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 Send: 'send', | 1148 Send: 'send', |
| 1149 Receive: 'receive', | 1149 Receive: 'receive', |
| 1150 Error: 'error' | 1150 Error: 'error' |
| 1151 }; | 1151 }; |
| 1152 | 1152 |
| 1153 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ | 1153 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ |
| 1154 SDK.NetworkRequest.WebSocketFrame; | 1154 SDK.NetworkRequest.WebSocketFrame; |
| 1155 | 1155 |
| 1156 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ | 1156 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ |
| 1157 SDK.NetworkRequest.EventSourceMessage; | 1157 SDK.NetworkRequest.EventSourceMessage; |
| OLD | NEW |