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

Side by Side 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, 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
« no previous file with comments | « no previous file | Source/devtools/front_end/NetworkManager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 if (response.resourceLoadInfo()) { 266 if (response.resourceLoadInfo()) {
267 if (!response.resourceLoadInfo()->responseHeadersText.isEmpty()) 267 if (!response.resourceLoadInfo()->responseHeadersText.isEmpty())
268 responseObject->setHeadersText(response.resourceLoadInfo()->response HeadersText); 268 responseObject->setHeadersText(response.resourceLoadInfo()->response HeadersText);
269 269
270 responseObject->setRequestHeaders(buildObjectForHeaders(response.resourc eLoadInfo()->requestHeaders)); 270 responseObject->setRequestHeaders(buildObjectForHeaders(response.resourc eLoadInfo()->requestHeaders));
271 if (!response.resourceLoadInfo()->requestHeadersText.isEmpty()) 271 if (!response.resourceLoadInfo()->requestHeadersText.isEmpty())
272 responseObject->setRequestHeadersText(response.resourceLoadInfo()->r equestHeadersText); 272 responseObject->setRequestHeadersText(response.resourceLoadInfo()->r equestHeadersText);
273 } 273 }
274 274
275 AtomicString remoteIPAddress = response.remoteIPAddress();
276 if (!remoteIPAddress.isEmpty()) {
277 responseObject->setRemoteIPAddress(remoteIPAddress);
278 responseObject->setRemotePort(response.remotePort());
279 }
280
275 return responseObject; 281 return responseObject;
276 } 282 }
277 283
278 InspectorResourceAgent::~InspectorResourceAgent() 284 InspectorResourceAgent::~InspectorResourceAgent()
279 { 285 {
280 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) { 286 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) {
281 ErrorString error; 287 ErrorString error;
282 disable(&error); 288 disable(&error);
283 } 289 }
284 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); 290 ASSERT(!m_instrumentingAgents->inspectorResourceAgent());
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 : InspectorBaseAgent<InspectorResourceAgent>("Network") 797 : InspectorBaseAgent<InspectorResourceAgent>("Network")
792 , m_pageAgent(pageAgent) 798 , m_pageAgent(pageAgent)
793 , m_client(client) 799 , m_client(client)
794 , m_frontend(0) 800 , m_frontend(0)
795 , m_resourcesData(adoptPtr(new NetworkResourcesData())) 801 , m_resourcesData(adoptPtr(new NetworkResourcesData()))
796 , m_isRecalculatingStyle(false) 802 , m_isRecalculatingStyle(false)
797 { 803 {
798 } 804 }
799 805
800 } // namespace WebCore 806 } // namespace WebCore
OLDNEW
« 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