Commit ec6fda5e authored by andersca@apple.com's avatar andersca@apple.com

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

        Reviewed by Darin.

        Make some WebPlugin and WebPluginFactory SPI public.
        
        * Plugins/WebPlugin.h:
        * Plugins/WebPluginPrivate.h:
        * Plugins/WebPluginViewFactory.h:
        * Plugins/WebPluginViewFactoryPrivate.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f04c0e3f
2008-07-09 Anders Carlsson <andersca@apple.com>
Reviewed by Darin.
Make some WebPlugin and WebPluginFactory SPI public.
* Plugins/WebPlugin.h:
* Plugins/WebPluginPrivate.h:
* Plugins/WebPluginViewFactory.h:
* Plugins/WebPluginViewFactoryPrivate.h:
2008-07-08 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Anders.
......
......@@ -92,4 +92,40 @@
*/
- (id)objectForWebScript;
/*!
@method webPlugInMainResourceDidReceiveResponse:
@abstract Called on the plug-in when WebKit receives -connection:didReceiveResponse:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidReceiveResponse:(NSURLResponse *)response;
/*!
@method webPlugInMainResourceDidReceiveData:
@abstract Called on the plug-in when WebKit recieves -connection:didReceiveData:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidReceiveData:(NSData *)data;
/*!
@method webPlugInMainResourceDidFailWithError:
@abstract Called on the plug-in when WebKit receives -connection:didFailWithError:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidFailWithError:(NSError *)error;
/*!
@method webPlugInMainResourceDidFinishLoading
@abstract Called on the plug-in when WebKit receives -connectionDidFinishLoading:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidFinishLoading;
@end
......@@ -26,50 +26,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
Private extensions to the WebPlugin interface. A plugin may implement these methods
to receive loading callbacks for its main resource. Plug-ins that implement this SPI
show better loading progress in the browser, can be saved to disk, and are
more efficient by avoiding making duplicate GET or POST requests for the plug-in's main
resource.
*/
@interface NSObject (WebPlugInPrivate)
/*!
@method webPlugInMainResourceDidReceiveResponse:
@abstract Called on the plug-in when WebKit receives -connection:didReceiveResponse:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidReceiveResponse:(NSURLResponse *)response;
/*!
@method webPlugInMainResourceDidReceiveData:
@abstract Called on the plug-in when WebKit recieves -connection:didReceiveData:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidReceiveData:(NSData *)data;
/*!
@method webPlugInMainResourceDidFailWithError:
@abstract Called on the plug-in when WebKit receives -connection:didFailWithError:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidFailWithError:(NSError *)error;
/*!
@method webPlugInMainResourceDidFinishLoading
@abstract Called on the plug-in when WebKit receives -connectionDidFinishLoading:
for the plug-in's main resource.
@discussion This method is only sent to the plug-in if the
WebPlugInShouldLoadMainResourceKey argument passed to the plug-in was NO.
*/
- (void)webPlugInMainResourceDidFinishLoading;
@end
......@@ -58,6 +58,15 @@ extern NSString *WebPlugInContainerKey;
*/
extern NSString *WebPlugInContainingElementKey;
/*!
@constant WebPlugInShouldLoadMainResourceKey REQUIRED. NSNumber (BOOL) indicating whether the plug-in should load its
own main resource (the "src" URL, in most cases). If YES, the plug-in should load its own main resource. If NO, the
plug-in should use the data provided by WebKit. See -webPlugInMainResourceReceivedData: in WebPluginPrivate.h.
For compatibility with older versions of WebKit, the plug-in should assume that the value for
WebPlugInShouldLoadMainResourceKey is NO if it is absent from the arguments dictionary.
*/
extern NSString *WebPlugInShouldLoadMainResourceKey;
/*!
@protocol WebPlugInViewFactory
@discussion WebPlugInViewFactory are used to create the NSView for a plug-in.
......
......@@ -37,12 +37,3 @@ typedef enum {
@constant WebPlugInModeKey REQUIRED. Number with one of the values from the WebPlugInMode enum.
*/
extern NSString *WebPlugInModeKey;
/*!
@constant WebPlugInShouldLoadMainResourceKey REQUIRED. NSNumber (BOOL) indicating whether the plug-in should load its
own main resource (the "src" URL, in most cases). If YES, the plug-in should load its own main resource. If NO, the
plug-in should use the data provided by WebKit. See -webPlugInMainResourceReceivedData: in WebPluginPrivate.h.
For compatibility with older versions of WebKit, the plug-in should assume that the value for
WebPlugInShouldLoadMainResourceKey is NO if it is absent from the arguments dictionary.
*/
extern NSString *WebPlugInShouldLoadMainResourceKey;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment