Commit 015956cc authored by eustas@chromium.org's avatar eustas@chromium.org

DevTools: NetworkRequest: convert connectionId to string

String is much more useful, it can be used as key for StringMap.

BUG=

Review URL: https://codereview.chromium.org/556363002

git-svn-id: svn://svn.chromium.org/blink/trunk@181763 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5a4d8e88
...@@ -58,8 +58,8 @@ WebInspector.HAREntry.prototype = { ...@@ -58,8 +58,8 @@ WebInspector.HAREntry.prototype = {
timings: this._buildTimings() timings: this._buildTimings()
}; };
if (this._request.connectionId) if (this._request.connectionId !== "0")
entry.connection = String(this._request.connectionId); entry.connection = this._request.connectionId;
var page = this._request.target().networkLog.pageLoadForRequest(this._request); var page = this._request.target().networkLog.pageLoadForRequest(this._request);
if (page) if (page)
entry.pageref = "page_" + page.id; entry.pageref = "page_" + page.id;
......
...@@ -199,7 +199,7 @@ WebInspector.NetworkDispatcher.prototype = { ...@@ -199,7 +199,7 @@ WebInspector.NetworkDispatcher.prototype = {
} }
networkRequest.connectionReused = response.connectionReused; networkRequest.connectionReused = response.connectionReused;
networkRequest.connectionId = response.connectionId; networkRequest.connectionId = String(response.connectionId);
if (response.remoteIPAddress) if (response.remoteIPAddress)
networkRequest.setRemoteAddress(response.remoteIPAddress, response.remotePort || -1); networkRequest.setRemoteAddress(response.remoteIPAddress, response.remotePort || -1);
......
...@@ -68,6 +68,9 @@ WebInspector.NetworkRequest = function(target, requestId, url, documentURL, fram ...@@ -68,6 +68,9 @@ WebInspector.NetworkRequest = function(target, requestId, url, documentURL, fram
this._responseHeaderValues = {}; this._responseHeaderValues = {};
this._remoteAddress = ""; this._remoteAddress = "";
/** @type {string} */
this.connectionId = "0";
} }
WebInspector.NetworkRequest.Events = { WebInspector.NetworkRequest.Events = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment