webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
import"IWebDataSource.idl";
Public Member Functions | |
HRESULT | initWithRequest ([in] IWebURLRequest *request) |
HRESULT | data ([out, retval] IStream **stream) |
HRESULT | representation ([out, retval] IWebDocumentRepresentation **rep) |
HRESULT | webFrame ([out, retval] IWebFrame **frame) |
HRESULT | initialRequest ([out, retval] IWebURLRequest **request) |
HRESULT | request ([out, retval] IWebMutableURLRequest **request) |
HRESULT | response ([out, retval] IWebURLResponse **response) |
HRESULT | textEncodingName ([out, retval] BSTR *name) |
HRESULT | isLoading ([out, retval] BOOL *loading) |
HRESULT | pageTitle ([out, retval] BSTR *title) |
HRESULT | unreachableURL ([out, retval] BSTR *url) |
HRESULT | webArchive ([out, retval] IWebArchive **archive) |
HRESULT | mainResource ([out, retval] IWebResource **resource) |
HRESULT | subresources ([out, retval] IEnumVARIANT **enumResources) |
HRESULT | subresourceForURL ([in] BSTR url, [out, retval] IWebResource **resource) |
HRESULT | addSubresource ([in] IWebResource *subresource) |
HRESULT IWebDataSource::addSubresource | ( | [in] IWebResource * | subresource | ) |
addSubresource: Adds a subresource to the data source.
subresource | The subresource to be added. addSubresource: adds a subresource to the data source's list of subresources. Later, if something causes the data source to load the URL of the subresource, the data source will load the data from the subresource instead of from the network. For example, if one wants to add an image that is already downloaded to a web page, addSubresource: can be called so that the data source uses the downloaded image rather than accessing the network. NOTE: If the data source already has a subresource with the same URL, addSubresource: will replace it.
|
HRESULT IWebDataSource::data | ( | [out, retval] IStream ** | stream | ) |
data The data will be incomplete until the datasource has completely loaded.
HRESULT IWebDataSource::initialRequest | ( | [out, retval] IWebURLRequest ** | request | ) |
initialRequest
HRESULT IWebDataSource::initWithRequest | ( | [in] IWebURLRequest * | request | ) |
initWithRequest: The designated initializer for WebDataSource.
request | The request to use in creating a datasource. |
isLoading Returns YES if there are any pending loads.
HRESULT IWebDataSource::mainResource | ( | [out, retval] IWebResource ** | resource | ) |
mainResource
pageTitle
HRESULT IWebDataSource::representation | ( | [out, retval] IWebDocumentRepresentation ** | rep | ) |
representation A representation holds a type specific representation of the datasource's data. The representation class is determined by mapping a MIME type to a class. The representation is created once the MIME type of the datasource content has been determined.
HRESULT IWebDataSource::request | ( | [out, retval] IWebMutableURLRequest ** | request | ) |
request
HRESULT IWebDataSource::response | ( | [out, retval] IWebURLResponse ** | response | ) |
response
HRESULT IWebDataSource::subresourceForURL | ( | [in] BSTR | url, |
[out, retval] IWebResource ** | resource | ||
) |
method subresourceForURL: Returns a subresource for a given URL.
URL | The URL of the subresource. Returns non-nil if the data source has fully downloaded a subresource with the given URL.
|
HRESULT IWebDataSource::subresources | ( | [out, retval] IEnumVARIANT ** | enumResources | ) |
subresources Returns all the subresources associated with the data source. The returned array only contains subresources that have fully downloaded.
textEncodingName
unreachableURL This will be non-nil only for dataSources created by calls to the WebFrame method loadAlternateHTMLString:baseURL:forUnreachableURL:.
HRESULT IWebDataSource::webArchive | ( | [out, retval] IWebArchive ** | archive | ) |
webArchive
webFrame