| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 { | 200 { |
| 201 return this._loaderId; | 201 return this._loaderId; |
| 202 }, | 202 }, |
| 203 | 203 |
| 204 /** | 204 /** |
| 205 * @param {string} ip | 205 * @param {string} ip |
| 206 * @param {number} port | 206 * @param {number} port |
| 207 */ | 207 */ |
| 208 setRemoteAddress: function(ip, port) | 208 setRemoteAddress: function(ip, port) |
| 209 { | 209 { |
| 210 if (ip.indexOf(":") !== -1) | |
| 211 ip = "[" + ip + "]"; | |
| 212 this._remoteAddress = ip + ":" + port; | 210 this._remoteAddress = ip + ":" + port; |
| 213 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.RemoteA
ddressChanged, this); | 211 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.RemoteA
ddressChanged, this); |
| 214 }, | 212 }, |
| 215 | 213 |
| 216 /** | 214 /** |
| 217 * @return {string} | 215 * @return {string} |
| 218 */ | 216 */ |
| 219 remoteAddress: function() | 217 remoteAddress: function() |
| 220 { | 218 { |
| 221 return this._remoteAddress; | 219 return this._remoteAddress; |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1184 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
| 1187 }, | 1185 }, |
| 1188 | 1186 |
| 1189 replayXHR: function() | 1187 replayXHR: function() |
| 1190 { | 1188 { |
| 1191 this.target().networkAgent().replayXHR(this.requestId); | 1189 this.target().networkAgent().replayXHR(this.requestId); |
| 1192 }, | 1190 }, |
| 1193 | 1191 |
| 1194 __proto__: WebInspector.SDKObject.prototype | 1192 __proto__: WebInspector.SDKObject.prototype |
| 1195 } | 1193 } |
| OLD | NEW |