webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | List of all members
<WebResourceLoadDelegate > Protocol Reference

#import <WebResourceLoadDelegate.h>

Inheritance diagram for <WebResourceLoadDelegate >:

Instance Methods

(id- webView:identifierForInitialRequest:fromDataSource:
 
(NSURLRequest *) - webView:resource:willSendRequest:redirectResponse:fromDataSource:
 
(void- webView:resource:didReceiveAuthenticationChallenge:fromDataSource:
 
(void- webView:resource:didCancelAuthenticationChallenge:fromDataSource:
 
(void- webView:resource:didReceiveResponse:fromDataSource:
 
(void- webView:resource:didReceiveContentLength:fromDataSource:
 
(void- webView:resource:didFinishLoadingFromDataSource:
 
(void- webView:resource:didFailLoadingWithError:fromDataSource:
 
(void- webView:plugInFailedWithError:dataSource:
 

Method Documentation

◆ webView:identifierForInitialRequest:fromDataSource:()

- (id WebResourceLoadDelegate) webView: (WebView *)  sender
identifierForInitialRequest: (NSURLRequest *)  request
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:identifierForInitialRequest:fromDataSource:

Parameters
senderThe WebView sending the message.
requestThe request about to be sent.
dataSourceThe datasource that initiated the load. An implementor of WebResourceLoadDelegate should provide an identifier that can be used to track the load of a single resource. This identifier will be passed as the first argument for all of the other WebResourceLoadDelegate methods. The identifier is useful to track changes to a resources request, which will be provided by one or more calls to resource:willSendRequest:redirectResponse:fromDataSource:.
Returns
An identifier that will be passed back to the implementor for each callback. The identifier will be retained.

◆ webView:plugInFailedWithError:dataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
plugInFailedWithError: (NSError *)  error
dataSource: (WebDataSource *)  dataSource 
optional

webView:plugInFailedWithError:dataSource: Called when a plug-in is not found, fails to load or is not available for some reason.

Parameters
senderThe WebView sending the message.
errorThe plug-in error. In the userInfo dictionary of the error, the object for the NSErrorFailingURLKey key is a URL string of the SRC attribute, the object for the WebKitErrorPlugInNameKey key is a string of the plug-in's name, the object for the WebKitErrorPlugInPageURLStringKey key is a URL string of the PLUGINSPAGE attribute and the object for the WebKitErrorMIMETypeKey key is a string of the TYPE attribute. Some, none or all of the mentioned attributes can be present in the userInfo. The error returns nil for userInfo when none are present.
dataSourceThe dataSource that contains the plug-in.

◆ webView:resource:didCancelAuthenticationChallenge:fromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didCancelAuthenticationChallenge: (NSURLAuthenticationChallenge *)  challenge
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didCancelAuthenticationChallenge:fromDataSource: Cancel authentication for a given request

Parameters
challengeThe NSURLAuthenticationChallenge for which to cancel authentication

◆ webView:resource:didFailLoadingWithError:fromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didFailLoadingWithError: (NSError *)  error
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didFailLoadingWithError:fromDataSource: This message is sent after a load has failed to load due to an error.

Parameters
senderThe WebView sending the message.
identifierAn identifier that can be used to track the progress of a resource load across multiple call backs.
errorThe error associated with this load.
dataSourceThe dataSource that initiated the load.

◆ webView:resource:didFinishLoadingFromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didFinishLoadingFromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didFinishLoadingFromDataSource: This message is sent after a load has successfully completed.

Parameters
senderThe WebView sending the message.
identifierAn identifier that can be used to track the progress of a resource load across multiple call backs.
dataSourceThe dataSource that initiated the load.

◆ webView:resource:didReceiveAuthenticationChallenge:fromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didReceiveAuthenticationChallenge: (NSURLAuthenticationChallenge *)  challenge
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didReceiveAuthenticationChallenge:fromDataSource: Start authentication for the resource, providing a challenge Call useCredential::, continueWithoutCredential or cancel on the challenge when done.

Parameters
challengeThe NSURLAuthenticationChallenge to start authentication for If you do not implement this delegate method, WebKit will handle authentication automatically by prompting with a sheet on the window that the WebView is associated with.

◆ webView:resource:didReceiveContentLength:fromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didReceiveContentLength: (NSInteger)  length
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didReceiveContentLength:fromDataSource: Multiple of these messages may be sent as data arrives.

Parameters
senderThe WebView sending the message.
identifierAn identifier that can be used to track the progress of a resource load across multiple call backs.
lengthThe amount of new data received. This is not the total amount, just the new amount received.
dataSourceThe dataSource that initiated the load.

◆ webView:resource:didReceiveResponse:fromDataSource:()

- (void WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
didReceiveResponse: (NSURLResponse *)  response
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:didReceiveResponse:fromDataSource: This message is sent after a response has been received for this load.

Parameters
senderThe WebView sending the message.
identifierAn identifier that can be used to track the progress of a resource load across multiple call backs.
responseThe response for the request.
dataSourceThe dataSource that initiated the load. In some rare cases, multiple responses may be received for a single load. This occurs with multipart/x-mixed-replace, or "server push". In this case, the client should assume that each new response resets progress so far for the resource back to 0, and should check the new response for the expected content length.

◆ webView:resource:willSendRequest:redirectResponse:fromDataSource:()

- (NSURLRequest * WebResourceLoadDelegate) webView: (WebView *)  sender
resource: (id identifier
willSendRequest: (NSURLRequest *)  request
redirectResponse: (NSURLResponse *)  redirectResponse
fromDataSource: (WebDataSource *)  dataSource 
optional

webView:resource:willSendRequest:redirectResponse:fromDataSource: This message is sent before a load is initiated. The request may be modified as necessary by the receiver.

Parameters
senderThe WebView sending the message.
identifierAn identifier that can be used to track the progress of a resource load across multiple call backs.
requestThe request about to be sent.
redirectResponseIf the request is being made in response to a redirect we received, the response that conveyed that redirect.
dataSourceThe dataSource that initiated the load.
Returns
Returns the request, which may be mutated by the implementor, although typically will be request.

The documentation for this protocol was generated from the following file: