#include <WebDataSource.h>
Public Member Functions | |
| virtual | ~WebDataSource () |
| WebDataSource destructor. | |
| virtual void | initWithRequest (WebMutableURLRequest *request) |
| The designated initializer for WebDataSource. | |
| virtual WTF::PassRefPtr < WebCore::SharedBuffer > | data () |
| The data will be incomplete until the datasource has completely loaded. | |
| virtual WebFrame * | webFrame () |
| A representation holds a type specific representation of the datasource's data. | |
| virtual WebMutableURLRequest * | initialRequest () |
| initialRequest description | |
| virtual WebMutableURLRequest * | request () |
| Returns a reference to the original request that created the datasource. | |
| virtual WebURLResponse * | response () |
| returns the WebResourceResponse for the data source. | |
| virtual WebCore::String | textEncodingName () |
| Returns either the override encoding, as set on the WebView for this dataSource or the encoding from the response. | |
| virtual bool | isLoading () |
| Returns true if there are any pending loads. | |
| virtual WebCore::String | pageTitle () |
| Returns nil or the page title. | |
| virtual WebCore::String | unreachableURL () |
| This will be non-nil only for dataSources created by calls to the WebFrame method loadAlternateHTMLString:baseURL:forUnreachableURL:. | |
| virtual WebArchive * | webArchive () |
| A WebArchive representing the data source, its subresources and child frames. | |
| virtual WebResource * | mainResource () |
| A WebResource representing the data source. | |
| virtual WebResource * | subresourceForURL (WebCore::String url) |
| Returns a subresource for a given URL. | |
| virtual void | addSubresource (WebResource *subresource) |
| Adds a subresource to the data source. | |
| virtual WebCore::String | overrideEncoding () |
| get override encoding | |
| virtual void | setOverrideEncoding (WebCore::String encoding) |
| set override encoding | |
| virtual WebError * | mainDocumentError () |
| get main document error | |
| WebDocumentLoader * | documentLoader () const |
Static Public Member Functions | |
| static WebDataSource * | createInstance (WebDocumentLoader *) |
| create a new instance of WebDataSource | |
Protected Member Functions | |
| WebDataSource (WebDocumentLoader *) | |
| WebDataSource constructor. | |
Protected Attributes | |
| RefPtr< WebDocumentLoader > | m_loader |
| WebDataSource::WebDataSource | ( | WebDocumentLoader * | ) | [protected] |
| virtual WebDataSource::~WebDataSource | ( | ) | [virtual] |
WebDataSource destructor.
| static WebDataSource* WebDataSource::createInstance | ( | WebDocumentLoader * | ) | [static] |
| virtual void WebDataSource::initWithRequest | ( | WebMutableURLRequest * | request | ) | [virtual] |
The designated initializer for WebDataSource.
| request | The request to use in creating a datasource. |
| virtual WTF::PassRefPtr<WebCore::SharedBuffer> WebDataSource::data | ( | ) | [virtual] |
The data will be incomplete until the datasource has completely loaded.
| virtual WebFrame* WebDataSource::webFrame | ( | ) | [virtual] |
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.
| virtual WebMutableURLRequest* WebDataSource::initialRequest | ( | ) | [virtual] |
initialRequest description
| [in] | description | |
| [out] | description |
| virtual WebMutableURLRequest* WebDataSource::request | ( | ) | [virtual] |
Returns a reference to the original request that created the datasource.
This request will be unmodified by WebKit.
| virtual WebURLResponse* WebDataSource::response | ( | ) | [virtual] |
returns the WebResourceResponse for the data source.
| virtual WebCore::String WebDataSource::textEncodingName | ( | ) | [virtual] |
Returns either the override encoding, as set on the WebView for this dataSource or the encoding from the response.
| virtual bool WebDataSource::isLoading | ( | ) | [virtual] |
Returns true if there are any pending loads.
| virtual WebCore::String WebDataSource::pageTitle | ( | ) | [virtual] |
Returns nil or the page title.
| virtual WebCore::String WebDataSource::unreachableURL | ( | ) | [virtual] |
This will be non-nil only for dataSources created by calls to the WebFrame method loadAlternateHTMLString:baseURL:forUnreachableURL:.
| virtual WebArchive* WebDataSource::webArchive | ( | ) | [virtual] |
A WebArchive representing the data source, its subresources and child frames.
This method constructs a WebArchive using the original downloaded data. In the case of HTML, if the current state of the document is preferred, webArchive should be called on the DOM document instead.
| virtual WebResource* WebDataSource::mainResource | ( | ) | [virtual] |
A WebResource representing the data source.
This method constructs a WebResource using the original downloaded data. This method can be used to construct a WebArchive in case the archive returned by WebDataSource's webArchive isn't sufficient.
| virtual WebResource* WebDataSource::subresourceForURL | ( | WebCore::String | url | ) | [virtual] |
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. |
| virtual void WebDataSource::addSubresource | ( | WebResource * | subresource | ) | [virtual] |
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. |
| virtual WebCore::String WebDataSource::overrideEncoding | ( | ) | [virtual] |
get override encoding
| virtual void WebDataSource::setOverrideEncoding | ( | WebCore::String | encoding | ) | [virtual] |
set override encoding
| virtual WebError* WebDataSource::mainDocumentError | ( | ) | [virtual] |
get main document error
| WebDocumentLoader* WebDataSource::documentLoader | ( | ) | const |
RefPtr<WebDocumentLoader> WebDataSource::m_loader [protected] |