Changeset 77604 in webkit
- Timestamp:
- Feb 3, 2011 9:38:21 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r77602 r77604 1 2011-02-03 Brian Ryner <bryner@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Add a field to the ResourceResponse for tracking the socket address 6 of the host that the resource was fetched from. Patch was originally 7 by Paul Marks. 8 https://bugs.webkit.org/show_bug.cgi?id=53699 9 10 * platform/network/chromium/ResourceResponse.cpp: 11 (WebCore::ResourceResponse::doPlatformCopyData): 12 (WebCore::ResourceResponse::doPlatformAdopt): 13 * platform/network/chromium/ResourceResponse.h: 14 (WebCore::ResourceResponse::socketAddress): 15 (WebCore::ResourceResponse::setSocketAddress): 16 1 17 2011-02-03 Adam Langley <agl@chromium.org> 2 18 -
trunk/Source/WebCore/platform/network/chromium/ResourceResponse.cpp
r68762 r77604 40 40 data->m_wasFetchedViaProxy = m_wasFetchedViaProxy; 41 41 data->m_responseTime = m_responseTime; 42 data->m_socketAddress = m_socketAddress; 42 43 return data; 43 44 } … … 54 55 m_wasFetchedViaProxy = data->m_wasFetchedViaProxy; 55 56 m_responseTime = data->m_responseTime; 57 m_socketAddress = data->m_socketAddress; 56 58 } 57 59 -
trunk/Source/WebCore/platform/network/chromium/ResourceResponse.h
r68762 r77604 97 97 void setResponseTime(double responseTime) { m_responseTime = responseTime; } 98 98 99 const String& socketAddress() const { return m_socketAddress; } 100 void setSocketAddress(const String& value) { m_socketAddress = value; } 101 99 102 private: 100 103 friend class ResourceResponseBase; … … 144 147 // responses, this time could be "far" in the past. 145 148 double m_responseTime; 149 150 // Remote address of the socket which fetched this resource, for presenting 151 // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty. 152 String m_socketAddress; 146 153 }; 147 154 … … 156 163 bool m_wasFetchedViaProxy; 157 164 double m_responseTime; 165 String m_socketAddress; 158 166 }; 159 167 -
trunk/Source/WebKit/chromium/ChangeLog
r77602 r77604 1 2011-02-03 Brian Ryner <bryner@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Add a field to the ResourceResponse for tracking the socket address 6 of the host that the resource was fetched from. Patch was originally 7 by Paul Marks. 8 https://bugs.webkit.org/show_bug.cgi?id=53699 9 10 * public/WebURLResponse.h: 11 * src/WebURLResponse.cpp: 12 (WebKit::WebURLResponse::socketAddress): 13 (WebKit::WebURLResponse::setSocketAddress): 14 1 15 2011-02-03 Adam Langley <agl@chromium.org> 2 16 -
trunk/Source/WebKit/chromium/public/WebURLResponse.h
r72375 r77604 170 170 WEBKIT_API void setDownloadFilePath(const WebString&); 171 171 172 // Remote address of the socket which fetched this resource, for presenting 173 // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty. 174 WEBKIT_API WebString socketAddress() const; 175 WEBKIT_API void setSocketAddress(const WebString&); 176 172 177 protected: 173 178 void assign(WebURLResponsePrivate*); -
trunk/Source/WebKit/chromium/src/WebURLResponse.cpp
r72375 r77604 385 385 } 386 386 387 WebString WebURLResponse::socketAddress() const 388 { 389 return m_private->m_resourceResponse->socketAddress(); 390 } 391 392 void WebURLResponse::setSocketAddress(const WebString& socketAddress) 393 { 394 m_private->m_resourceResponse->setSocketAddress(socketAddress); 395 } 396 387 397 void WebURLResponse::assign(WebURLResponsePrivate* p) 388 398 {
Note: See TracChangeset
for help on using the changeset viewer.