Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: Source/devtools/front_end/NetworkRequest.js

Issue 142863003: Show IP address in DevTools. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 this.statusText = ""; 52 this.statusText = "";
53 this.requestMethod = ""; 53 this.requestMethod = "";
54 this.requestTime = 0; 54 this.requestTime = 0;
55 55
56 this._type = WebInspector.resourceTypes.Other; 56 this._type = WebInspector.resourceTypes.Other;
57 this._contentEncoded = false; 57 this._contentEncoded = false;
58 this._pendingContentCallbacks = []; 58 this._pendingContentCallbacks = [];
59 this._frames = []; 59 this._frames = [];
60 60
61 this._responseHeaderValues = {}; 61 this._responseHeaderValues = {};
62
63 this._remoteAddress = "";
62 } 64 }
63 65
64 WebInspector.NetworkRequest.Events = { 66 WebInspector.NetworkRequest.Events = {
65 FinishedLoading: "FinishedLoading", 67 FinishedLoading: "FinishedLoading",
66 TimingChanged: "TimingChanged", 68 TimingChanged: "TimingChanged",
67 RequestHeadersChanged: "RequestHeadersChanged", 69 RequestHeadersChanged: "RequestHeadersChanged",
68 ResponseHeadersChanged: "ResponseHeadersChanged", 70 ResponseHeadersChanged: "ResponseHeadersChanged",
69 } 71 }
70 72
71 /** @enum {string} */ 73 /** @enum {string} */
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 139
138 /** 140 /**
139 * @return {!NetworkAgent.LoaderId} 141 * @return {!NetworkAgent.LoaderId}
140 */ 142 */
141 get loaderId() 143 get loaderId()
142 { 144 {
143 return this._loaderId; 145 return this._loaderId;
144 }, 146 },
145 147
146 /** 148 /**
149 * @param {string} ip
150 * @param {number} port
151 */
152 setRemoteAddress: function(ip, port)
153 {
154 this._remoteAddress = ip + ":" + port;
155 },
156
157 /**
158 * @return {string}
159 */
160 remoteAddress: function()
161 {
162 return this._remoteAddress;
163 },
164
165 /**
147 * @return {number} 166 * @return {number}
148 */ 167 */
149 get startTime() 168 get startTime()
150 { 169 {
151 return this._startTime || -1; 170 return this._startTime || -1;
152 }, 171 },
153 172
154 set startTime(x) 173 set startTime(x)
155 { 174 {
156 this._startTime = x; 175 this._startTime = x;
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 */ 974 */
956 _pushFrame: function(frameOrError) 975 _pushFrame: function(frameOrError)
957 { 976 {
958 if (this._frames.length >= 100) 977 if (this._frames.length >= 100)
959 this._frames.splice(0, 10); 978 this._frames.splice(0, 10);
960 this._frames.push(frameOrError); 979 this._frames.push(frameOrError);
961 }, 980 },
962 981
963 __proto__: WebInspector.Object.prototype 982 __proto__: WebInspector.Object.prototype
964 } 983 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698