webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Class Methods | Protected Member Functions | Protected Attributes | Properties | List of all members
WebResource Class Reference

#import <WebResource.h>

Inheritance diagram for WebResource:
IWebResource NSObject

Instance Methods

(instancetype) - initWithData:URL:MIMEType:textEncodingName:frameName:
 
(virtual HRESULT STDMETHODCALLTYPE) - QueryInterface
 
(virtual ULONG STDMETHODCALLTYPE) - AddRef
 
(virtual ULONG STDMETHODCALLTYPE) - Release
 
(virtual HRESULT STDMETHODCALLTYPE) - initWithData
 
(virtual HRESULT STDMETHODCALLTYPE) - data
 
(virtual HRESULT STDMETHODCALLTYPE) - URL
 
(virtual HRESULT STDMETHODCALLTYPE) - MIMEType
 
(virtual HRESULT STDMETHODCALLTYPE) - textEncodingName
 
(virtual HRESULT STDMETHODCALLTYPE) - frameName
 
- Instance Methods inherited from IWebResource
HRESULT initWithData ([in] IStream *data, [in] BSTR url, [in] BSTR mimeType, [in] BSTR textEncodingName, [in] BSTR frameName)
 
HRESULT data ([out, retval] IStream **data)
 
HRESULT URL ([out, retval] BSTR *url)
 
HRESULT MIMEType ([out, retval] BSTR *mime)
 
HRESULT textEncodingName ([out, retval] BSTR *encodingName)
 
HRESULT frameName ([out, retval] BSTR *name)
 

Class Methods

(static WebResource *) + createInstance
 

Protected Member Functions

() - WebResource
 
() - ~WebResource
 

Protected Attributes

package WebResourcePrivate_private
 

Properties

NSDatadata
 
NSURLURL
 
NSStringMIMEType
 
NSStringtextEncodingName
 
NSStringframeName
 

Detailed Description

A WebResource represents a fully downloaded URL. It includes the data of the resource as well as the metadata associated with the resource.

, NSCopying>

Constructor & Destructor Documentation

◆ WebResource()

- WebResource (IStream *)  data
(const WebCore::URL &)  url
(const WTF::String &)  mimeType
(const WTF::String &)  textEncodingName
(const WTF::String &)  frameName 

◆ ~WebResource()

Method Documentation

◆ AddRef()

- (ULONG) AddRef (void

◆ createInstance()

+ (WebResource *) createInstance (PassRefPtr< WebCore::SharedBuffer >)  data
(const WebCore::ResourceResponse &)  response 

◆ data()

- (HRESULT) data (_COM_Outptr_opt_ IStream **)  data

◆ frameName()

- (HRESULT) frameName (__deref_opt_out BSTR *)  name

◆ initWithData()

- (HRESULT) initWithData (_In_opt_ IStream *)  data
(_In_ BSTR url
(_In_ BSTR mimeType
(_In_ BSTR textEncodingName
(_In_ BSTR frameName 

◆ initWithData:URL:MIMEType:textEncodingName:frameName:()

- (instancetype) initWithData: (NSData *)  data
URL: (NSURL *)  URL
MIMEType: (NSString *)  MIMEType
textEncodingName: (NSString *)  textEncodingName
frameName: (NSString *)  frameName 

initWithData:URL:MIMEType:textEncodingName:frameName The initializer for WebResource.

Parameters
dataThe data of the resource.
URLThe URL of the resource.
MIMETypeThe MIME type of the resource.
textEncodingNameThe text encoding name of the resource (can be nil).
frameNameThe frame name of the resource if the resource represents the contents of an entire HTML frame (can be nil).
Returns
An initialized WebResource.

◆ MIMEType()

- (HRESULT) MIMEType (__deref_opt_out BSTR *)  mime

◆ QueryInterface()

- (HRESULT) QueryInterface (_In_ REFIID)  riid
(_COM_Outptr_ void **)  ppvObject 

◆ Release()

- (ULONG) Release (void

◆ textEncodingName()

- (HRESULT) textEncodingName (__deref_opt_out BSTR *)  encodingName

◆ URL()

- (HRESULT) URL (__deref_opt_out BSTR *)  url

Member Data Documentation

◆ _private

- (package WebResourcePrivate*) _private
protected

Property Documentation

◆ data

- (NSData *) data
readnonatomiccopy

The data of the resource.

◆ frameName

- (NSString *) frameName
readnonatomiccopy

The frame name of the resource if the resource represents the contents of an entire HTML frame (can be nil).

◆ MIMEType

- (NSString *) MIMEType
readnonatomiccopy

The MIME type of the resource.

◆ textEncodingName

- (NSString *) textEncodingName
readnonatomiccopy

The text encoding name of the resource (can be nil).

◆ URL

- (NSURL *) URL
readnonatomicstrong

The URL of the resource.


The documentation for this class was generated from the following files: