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

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: Fixed copy-paste + added field to detailed view 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",
69 RemoteAddressChanged: "RemoteAddressChanged",
67 RequestHeadersChanged: "RequestHeadersChanged", 70 RequestHeadersChanged: "RequestHeadersChanged",
68 ResponseHeadersChanged: "ResponseHeadersChanged", 71 ResponseHeadersChanged: "ResponseHeadersChanged",
69 } 72 }
70 73
71 /** @enum {string} */ 74 /** @enum {string} */
72 WebInspector.NetworkRequest.InitiatorType = { 75 WebInspector.NetworkRequest.InitiatorType = {
73 Other: "other", 76 Other: "other",
74 Parser: "parser", 77 Parser: "parser",
75 Redirect: "redirect", 78 Redirect: "redirect",
76 Script: "script" 79 Script: "script"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 140
138 /** 141 /**
139 * @return {!NetworkAgent.LoaderId} 142 * @return {!NetworkAgent.LoaderId}
140 */ 143 */
141 get loaderId() 144 get loaderId()
142 { 145 {
143 return this._loaderId; 146 return this._loaderId;
144 }, 147 },
145 148
146 /** 149 /**
150 * @param {string} ip
151 * @param {number} port
152 */
153 setRemoteAddress: function(ip, port)
154 {
155 this._remoteAddress = ip + ":" + port;
156 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.RemoteA ddressChanged, this);
157 },
158
159 /**
160 * @return {string}
161 */
162 remoteAddress: function()
163 {
164 return this._remoteAddress;
165 },
166
167 /**
147 * @return {number} 168 * @return {number}
148 */ 169 */
149 get startTime() 170 get startTime()
150 { 171 {
151 return this._startTime || -1; 172 return this._startTime || -1;
152 }, 173 },
153 174
154 set startTime(x) 175 set startTime(x)
155 { 176 {
156 this._startTime = x; 177 this._startTime = x;
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 */ 976 */
956 _pushFrame: function(frameOrError) 977 _pushFrame: function(frameOrError)
957 { 978 {
958 if (this._frames.length >= 100) 979 if (this._frames.length >= 100)
959 this._frames.splice(0, 10); 980 this._frames.splice(0, 10);
960 this._frames.push(frameOrError); 981 this._frames.push(frameOrError);
961 }, 982 },
962 983
963 __proto__: WebInspector.Object.prototype 984 __proto__: WebInspector.Object.prototype
964 } 985 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/NetworkPanel.js ('k') | Source/devtools/front_end/RequestHeadersView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698