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

Unified Diff: Source/core/inspector/InspectorResourceAgent.cpp

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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/NetworkManager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index f36c69b7bcd9f739184b60469285df398c153614..4028a10bb4c764974c93e356bc5e805d2279b574 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -272,6 +272,12 @@ static PassRefPtr<TypeBuilder::Network::Response> buildObjectForResourceResponse
responseObject->setRequestHeadersText(response.resourceLoadInfo()->requestHeadersText);
}
+ AtomicString remoteIPAddress = response.remoteIPAddress();
+ if (!remoteIPAddress.isEmpty()) {
+ responseObject->setRemoteIPAddress(remoteIPAddress);
+ responseObject->setRemotePort(response.remotePort());
+ }
+
return responseObject;
}
« no previous file with comments | « no previous file | Source/devtools/front_end/NetworkManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698