pleyo.com

WebDataSource Class Reference

#include <WebDataSource.h>

List of all members.

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 WebFramewebFrame ()
 A representation holds a type specific representation of the datasource's data.
virtual WebMutableURLRequestinitialRequest ()
 initialRequest description
virtual WebMutableURLRequestrequest ()
 Returns a reference to the original request that created the datasource.
virtual WebURLResponseresponse ()
 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 WebArchivewebArchive ()
 A WebArchive representing the data source, its subresources and child frames.
virtual WebResourcemainResource ()
 A WebResource representing the data source.
virtual WebResourcesubresourceForURL (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 WebErrormainDocumentError ()
 get main document error
WebDocumentLoaderdocumentLoader () const

Static Public Member Functions

static WebDataSourcecreateInstance (WebDocumentLoader *)
 create a new instance of WebDataSource

Protected Member Functions

 WebDataSource (WebDocumentLoader *)
 WebDataSource constructor.

Protected Attributes

RefPtr< WebDocumentLoaderm_loader


Constructor & Destructor Documentation

WebDataSource::WebDataSource ( WebDocumentLoader  )  [protected]

WebDataSource constructor.

Parameters:
[in]  WebDocumentLoader

virtual WebDataSource::~WebDataSource (  )  [virtual]

WebDataSource destructor.


Member Function Documentation

static WebDataSource* WebDataSource::createInstance ( WebDocumentLoader  )  [static]

create a new instance of WebDataSource

Parameters:
[in]  WebDocumentLoader

virtual void WebDataSource::initWithRequest ( WebMutableURLRequest request  )  [virtual]

The designated initializer for WebDataSource.

Parameters:
request The request to use in creating a datasource.
Returns:
Returns an initialized WebDataSource.

virtual WTF::PassRefPtr<WebCore::SharedBuffer> WebDataSource::data (  )  [virtual]

The data will be incomplete until the datasource has completely loaded.

Returns:
Returns the raw data associated with the datasource. Returns nil if the datasource hasn't loaded any data.

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.

Returns:
Returns the representation associated with this datasource. Returns nil if the datasource hasn't created it's representation. Return the frame that represents this data source.

virtual WebMutableURLRequest* WebDataSource::initialRequest (  )  [virtual]

initialRequest description

Parameters:
[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:.

Returns:
returns the unreachableURL for which this dataSource is showing alternate content, or nil

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.

Parameters:
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.

Parameters:
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


Member Data Documentation

RefPtr<WebDocumentLoader> WebDataSource::m_loader [protected]


The documentation for this class was generated from the following file:
Generated on Fri Jul 4 17:02:56 2008 for Origyn Web Browser by Doxygen 1.5.4

pleyo.com
pleyo.com