../../../../../../WebCore:
commit991d5c39d88c1dacf9b6649318d700884198d465
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jul 2008 19:20:18 +0000 (28 19:20 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jul 2008 19:20:18 +0000 (28 19:20 +0000)
tree955c0cb32e423c83e887b596eb7b55b859838e23
parent9b01b457ad33fffaa8f3b54aa3a69661bc57dcfe
../../../../../../WebCore:

2008-07-28  Anders Carlsson  <andersca@apple.com>

        Reviewed by Kevin Decker.

        Based on a patch by Dimcho Balev.

        https://bugs.webkit.org/show_bug.cgi?id=18676
        Plug-In API Proposal: Enable plugins to receive response body when an HTTP error occurs

        * bridge/npapi.h:
        Add new enum values.

        * loader/NetscapePlugInStreamLoader.cpp:
        (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
        When the plug-in indicates that it wants all streams to be delivered, don't cancel the stream
        if an error occurs.

        * loader/NetscapePlugInStreamLoader.h:
        (WebCore::NetscapePlugInStreamLoaderClient::wantsAllStreams):
        Add new client method.

../../../../../../WebKit/mac:

2008-07-28  Anders Carlsson  <andersca@apple.com>

        Reviewed by Kevin Decker.

        Based on a patch by Dimcho Balev.

        https://bugs.webkit.org/show_bug.cgi?id=18676
        Plug-In API Proposal: Enable plugins to receive response body when an HTTP error occurs

        * Plugins/WebBaseNetscapePluginStream.h:
        Add NPP_GetValue pointer.

        * Plugins/WebBaseNetscapePluginStream.mm:
        (-[WebBaseNetscapePluginStream setPlugin:]):
        Initialize NPP_GetValue.

        (-[WebBaseNetscapePluginStream wantsAllStreams]):
        Call NPP_GetValue.

        * Plugins/WebPlugInStreamLoaderDelegate.h:
        * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h:
        * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm:
        (WebNetscapePlugInStreamLoaderClient::wantsAllStreams):
        Implement this and call down to the stream.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/npapi.h
WebCore/loader/NetscapePlugInStreamLoader.cpp
WebCore/loader/NetscapePlugInStreamLoader.h
WebKit/mac/ChangeLog
WebKit/mac/Plugins/WebBaseNetscapePluginStream.h
WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm
WebKit/mac/Plugins/WebPlugInStreamLoaderDelegate.h
WebKit/mac/WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h
WebKit/mac/WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm