Changeset 77604 in webkit


Ignore:
Timestamp:
Feb 3, 2011 9:38:21 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-03 Brian Ryner <bryner@chromium.org>

Reviewed by Darin Fisher.

Add a field to the ResourceResponse for tracking the socket address
of the host that the resource was fetched from. Patch was originally
by Paul Marks.
https://bugs.webkit.org/show_bug.cgi?id=53699

  • platform/network/chromium/ResourceResponse.cpp: (WebCore::ResourceResponse::doPlatformCopyData): (WebCore::ResourceResponse::doPlatformAdopt):
  • platform/network/chromium/ResourceResponse.h: (WebCore::ResourceResponse::socketAddress): (WebCore::ResourceResponse::setSocketAddress):

2011-02-03 Brian Ryner <bryner@chromium.org>

Reviewed by Darin Fisher.

Add a field to the ResourceResponse for tracking the socket address
of the host that the resource was fetched from. Patch was originally
by Paul Marks.
https://bugs.webkit.org/show_bug.cgi?id=53699

  • public/WebURLResponse.h:
  • src/WebURLResponse.cpp: (WebKit::WebURLResponse::socketAddress): (WebKit::WebURLResponse::setSocketAddress):
Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r77602 r77604  
     12011-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
    1172011-02-03  Adam Langley  <agl@chromium.org>
    218
  • trunk/Source/WebCore/platform/network/chromium/ResourceResponse.cpp

    r68762 r77604  
    4040    data->m_wasFetchedViaProxy = m_wasFetchedViaProxy;
    4141    data->m_responseTime = m_responseTime;
     42    data->m_socketAddress = m_socketAddress;
    4243    return data;
    4344}
     
    5455    m_wasFetchedViaProxy = data->m_wasFetchedViaProxy;
    5556    m_responseTime = data->m_responseTime;
     57    m_socketAddress = data->m_socketAddress;
    5658}
    5759
  • trunk/Source/WebCore/platform/network/chromium/ResourceResponse.h

    r68762 r77604  
    9797        void setResponseTime(double responseTime) { m_responseTime = responseTime; }
    9898
     99        const String& socketAddress() const { return m_socketAddress; }
     100        void setSocketAddress(const String& value) { m_socketAddress = value; }
     101
    99102    private:
    100103        friend class ResourceResponseBase;
     
    144147        // responses, this time could be "far" in the past.
    145148        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;
    146153    };
    147154
     
    156163        bool m_wasFetchedViaProxy;
    157164        double m_responseTime;
     165        String m_socketAddress;
    158166    };
    159167
  • trunk/Source/WebKit/chromium/ChangeLog

    r77602 r77604  
     12011-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
    1152011-02-03  Adam Langley  <agl@chromium.org>
    216
  • trunk/Source/WebKit/chromium/public/WebURLResponse.h

    r72375 r77604  
    170170    WEBKIT_API void setDownloadFilePath(const WebString&);
    171171
     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
    172177protected:
    173178    void assign(WebURLResponsePrivate*);
  • trunk/Source/WebKit/chromium/src/WebURLResponse.cpp

    r72375 r77604  
    385385}
    386386
     387WebString WebURLResponse::socketAddress() const
     388{
     389    return m_private->m_resourceResponse->socketAddress();
     390}
     391
     392void WebURLResponse::setSocketAddress(const WebString& socketAddress)
     393{
     394    m_private->m_resourceResponse->setSocketAddress(socketAddress);
     395}
     396
    387397void WebURLResponse::assign(WebURLResponsePrivate* p)
    388398{
Note: See TracChangeset for help on using the changeset viewer.