Changeset 61856 in webkit


Ignore:
Timestamp:
Jun 25, 2010 5:59:43 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-06-25 Michael Nordman <Michael Nordman>

Reviewed by Dumitru Daniliuc.

Additional API to pass additional info needed for AppCache progress events.
https://bugs.webkit.org/show_bug.cgi?id=37602

Also, delete an obsolete method from the worker API.

  • public/WebApplicationCacheHostClient.h: define a new method
  • public/WebSharedWorker.h: remove an obsolte method
  • src/ApplicationCacheHostInternal.h: implement the new method (WebCore::ApplicationCacheHostInternal::notifyProgressEventListener):
Location:
trunk/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r61849 r61856  
     12010-06-25  Michael Nordman  <michaeln@google.com>
     2
     3        Reviewed by Dumitru Daniliuc.
     4
     5        Additional API to pass additional info needed for AppCache progress events.
     6        https://bugs.webkit.org/show_bug.cgi?id=37602
     7
     8        Also, delete an obsolete method from the worker API.
     9
     10        * public/WebApplicationCacheHostClient.h: define a new method
     11        * public/WebSharedWorker.h: remove an obsolte method
     12        * src/ApplicationCacheHostInternal.h: implement the new method
     13        (WebCore::ApplicationCacheHostInternal::notifyProgressEventListener):
     14
    1152010-06-25  John Gregg  <johnnyg@google.com>
    216
  • trunk/WebKit/chromium/public/WebApplicationCacheHostClient.h

    r50667 r61856  
    4040class WebApplicationCacheHostClient {
    4141public:
    42     // Called to fire the event in the scriptable interface.
     42    // Called to fire events in the scriptable interface.
    4343    virtual void notifyEventListener(WebApplicationCacheHost::EventID) = 0;
     44    virtual void notifyProgressEventListener(const WebURL&, int num_total, int num_complete) = 0;
    4445
    4546protected:
  • trunk/WebKit/chromium/public/WebSharedWorker.h

    r59022 r61856  
    6464                                    long long scriptResourceAppCacheID) = 0;
    6565
    66     // FIXME(michaeln): Remove this after the roll and adjusting to it.
    67     virtual void startWorkerContext(const WebURL& scriptURL,
    68                                     const WebString& name,
    69                                     const WebString& userAgent,
    70                                     const WebString& sourceCode)
    71     {
    72         startWorkerContext(scriptURL, name, userAgent, sourceCode, 0);
    73     }
    74 
    7566    class ConnectListener {
    7667    public:
  • trunk/WebKit/chromium/src/ApplicationCacheHostInternal.h

    r57341 r61856  
    4040#include "WebKit.h"
    4141#include "WebKitClient.h"
     42#include "WebURL.h"
    4243
    4344namespace WebCore {
     
    5859    }
    5960
     61    virtual void notifyProgressEventListener(const WebKit::WebURL&, int num_total, int num_complete)
     62    {
     63        // FIXME: Modify webcore's progress event handling to carry the extra info and alter the
     64        // layout tests to not fail when the more recently specified 'final' event is raised.
     65        // For now, we're eating the extra info and that last event.
     66        // See https://bugs.webkit.org/show_bug.cgi?id=37602
     67        if (num_complete == num_total)
     68            return;
     69        notifyEventListener(WebKit::WebApplicationCacheHost::ProgressEvent);
     70    }
     71
    6072    static WebKit::WebApplicationCacheHost* toWebApplicationCacheHost(ApplicationCacheHost* innerHost)
    6173    {
Note: See TracChangeset for help on using the changeset viewer.