| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 this._type = WebInspector.resourceTypes.Other; | 62 this._type = WebInspector.resourceTypes.Other; |
| 63 this._contentEncoded = false; | 63 this._contentEncoded = false; |
| 64 this._pendingContentCallbacks = []; | 64 this._pendingContentCallbacks = []; |
| 65 /** @type {!Array.<!WebInspector.NetworkRequest.WebSocketFrame>} */ | 65 /** @type {!Array.<!WebInspector.NetworkRequest.WebSocketFrame>} */ |
| 66 this._frames = []; | 66 this._frames = []; |
| 67 | 67 |
| 68 this._responseHeaderValues = {}; | 68 this._responseHeaderValues = {}; |
| 69 | 69 |
| 70 this._remoteAddress = ""; | 70 this._remoteAddress = ""; |
| 71 |
| 72 /** @type {string} */ |
| 73 this.connectionId = "0"; |
| 71 } | 74 } |
| 72 | 75 |
| 73 WebInspector.NetworkRequest.Events = { | 76 WebInspector.NetworkRequest.Events = { |
| 74 FinishedLoading: "FinishedLoading", | 77 FinishedLoading: "FinishedLoading", |
| 75 TimingChanged: "TimingChanged", | 78 TimingChanged: "TimingChanged", |
| 76 RemoteAddressChanged: "RemoteAddressChanged", | 79 RemoteAddressChanged: "RemoteAddressChanged", |
| 77 RequestHeadersChanged: "RequestHeadersChanged", | 80 RequestHeadersChanged: "RequestHeadersChanged", |
| 78 ResponseHeadersChanged: "ResponseHeadersChanged", | 81 ResponseHeadersChanged: "ResponseHeadersChanged", |
| 79 } | 82 } |
| 80 | 83 |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 * @param {boolean} sent | 998 * @param {boolean} sent |
| 996 */ | 999 */ |
| 997 addFrame: function(response, time, sent) | 1000 addFrame: function(response, time, sent) |
| 998 { | 1001 { |
| 999 var type = sent ? WebInspector.NetworkRequest.WebSocketFrameType.Send :
WebInspector.NetworkRequest.WebSocketFrameType.Receive; | 1002 var type = sent ? WebInspector.NetworkRequest.WebSocketFrameType.Send :
WebInspector.NetworkRequest.WebSocketFrameType.Receive; |
| 1000 this._frames.push({ type: type, text: response.payloadData, time: time,
opCode: response.opcode, mask: response.mask }); | 1003 this._frames.push({ type: type, text: response.payloadData, time: time,
opCode: response.opcode, mask: response.mask }); |
| 1001 }, | 1004 }, |
| 1002 | 1005 |
| 1003 __proto__: WebInspector.SDKObject.prototype | 1006 __proto__: WebInspector.SDKObject.prototype |
| 1004 } | 1007 } |
| OLD | NEW |