Changeset 82223 in webkit


Ignore:
Timestamp:
Mar 29, 2011 3:38:11 AM (13 years ago)
Author:
yutak@chromium.org
Message:

2011-03-29 Yuta Kitamura <yutak@chromium.org>

Unreviewed, rolling out r82195.
http://trac.webkit.org/changeset/82195
https://bugs.webkit.org/show_bug.cgi?id=56602

Broke Chromium Clang builds.

  • public/WebDevToolsAgent.h:
  • public/WebURLLoaderClient.h:
  • src/AssociatedURLLoader.cpp: (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveData):
  • src/ResourceHandle.cpp: (WebCore::ResourceHandleInternal::didReceiveData):
  • src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::didReceiveData):
  • src/WebDevToolsAgentImpl.h:
Location:
trunk/Source/WebKit/chromium
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r82221 r82223  
     12011-03-29  Yuta Kitamura  <yutak@chromium.org>
     2
     3        Unreviewed, rolling out r82195.
     4        http://trac.webkit.org/changeset/82195
     5        https://bugs.webkit.org/show_bug.cgi?id=56602
     6
     7        Broke Chromium Clang builds.
     8
     9        * public/WebDevToolsAgent.h:
     10        * public/WebURLLoaderClient.h:
     11        * src/AssociatedURLLoader.cpp:
     12        (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveData):
     13        * src/ResourceHandle.cpp:
     14        (WebCore::ResourceHandleInternal::didReceiveData):
     15        * src/WebDevToolsAgentImpl.cpp:
     16        (WebKit::WebDevToolsAgentImpl::didReceiveData):
     17        * src/WebDevToolsAgentImpl.h:
     18
    1192011-03-29  Yuta Kitamura  <yutak@chromium.org>
    220
  • trunk/Source/WebKit/chromium/public/WebDevToolsAgent.h

    r82195 r82223  
    9595
    9696    virtual void willSendRequest(unsigned long resourceId, WebFrame*, WebURLRequest&) = 0;
    97     virtual void didReceiveData(unsigned long resourceId, int dataLength, int lengthReceived) = 0;
    98 
    99     // FIXME(vsevik): remove once not used downstream
    10097    virtual void didReceiveData(unsigned long resourceId, int length) = 0;
    101 
    10298    virtual void didReceiveResponse(unsigned long resourceId, const WebURLResponse&) = 0;
    10399    virtual void didFinishLoading(unsigned long resourceId) = 0;
  • trunk/Source/WebKit/chromium/public/WebURLLoaderClient.h

    r82195 r82223  
    5959
    6060    // Called when a chunk of response data is received.
    61     virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength, int lengthReceived) { }
    62 
    63     // FIXME(vsevik): remove once not used downstream
    6461    virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength) { }
    6562
  • trunk/Source/WebKit/chromium/src/AssociatedURLLoader.cpp

    r82195 r82223  
    120120}
    121121
    122 void AssociatedURLLoader::ClientAdapter::didReceiveData(const char* data, int dataLength)
    123 {
    124     if (!m_client)
    125         return;
    126 
    127     // FIXME(vsevik): add -1 to params once migrated.
    128     m_client->didReceiveData(m_loader, data, dataLength);
    129     m_downloadLength += dataLength;
     122void AssociatedURLLoader::ClientAdapter::didReceiveData(const char* data, int lengthReceived)
     123{
     124    if (!m_client)
     125        return;
     126
     127    m_client->didReceiveData(m_loader, data, lengthReceived);
     128    m_downloadLength += lengthReceived;
    130129}
    131130
  • trunk/Source/WebKit/chromium/src/ResourceHandle.cpp

    r82195 r82223  
    7373        WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent);
    7474    virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&);
    75     virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength, int lengthReceived);
    76 
    77     // FIXME(vsevik): remove once not used downstream
    7875    virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength);
    79 
    8076    virtual void didReceiveCachedMetadata(WebURLLoader*, const char* data, int dataLength);
    8177    virtual void didFinishLoading(WebURLLoader*, double finishTime);
     
    164160}
    165161
    166 void ResourceHandleInternal::didReceiveData(WebURLLoader* webURLLoader, const char* data, int dataLength)
    167 {
    168     didReceiveData(webURLLoader, data, dataLength, -1);
    169 }
    170 
    171 void ResourceHandleInternal::didReceiveData(WebURLLoader*, const char* data, int dataLength, int lengthReceived)
     162void ResourceHandleInternal::didReceiveData(WebURLLoader*, const char* data, int dataLength)
    172163{
    173164    ASSERT(m_client);
     
    176167    m_state = ConnectionStateReceivingData;
    177168
    178     m_client->didReceiveData(m_owner, data, dataLength, lengthReceived);
     169    // FIXME(vsevik): Add transfer size support to chromium port
     170    // See WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=56602
     171    m_client->didReceiveData(m_owner, data, dataLength, -1);
    179172}
    180173
  • trunk/Source/WebKit/chromium/src/WebDevToolsAgentImpl.cpp

    r82195 r82223  
    275275}
    276276
    277 // FIXME(vsevik): remove once not used downstream
    278277void WebDevToolsAgentImpl::didReceiveData(unsigned long resourceId, int length)
    279278{
    280     didReceiveData(resourceId, length, -1);
    281 }
    282 
    283 void WebDevToolsAgentImpl::didReceiveData(unsigned long resourceId, int length, int lengthReceived)
    284 {
    285     InspectorInstrumentation::didReceiveContentLength(mainFrame(), resourceId, length, lengthReceived);
     279    InspectorInstrumentation::didReceiveContentLength(mainFrame(), resourceId, length, -1);
    286280}
    287281
  • trunk/Source/WebKit/chromium/src/WebDevToolsAgentImpl.h

    r82195 r82223  
    8585
    8686    virtual void willSendRequest(unsigned long, WebFrame*, WebURLRequest&);
    87     virtual void didReceiveData(unsigned long, int length, int lengthReceived);
    88 
    89     // FIXME(vsevik): remove once not used downstream
    9087    virtual void didReceiveData(unsigned long, int length);
    91 
    9288    virtual void didReceiveResponse(unsigned long, const WebURLResponse&);
    9389    virtual void didFinishLoading(unsigned long);
Note: See TracChangeset for help on using the changeset viewer.