webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::FormData Class Reference

#include <FormData.h>

Inheritance diagram for WebCore::FormData:
WTF::RefCounted< FormData > WTF::RefCounted< FormData > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Types

enum  EncodingType {
  FormURLEncoded, TextPlain, MultipartFormData, FormURLEncoded,
  TextPlain, MultipartFormData
}
 
enum  EncodingType {
  FormURLEncoded, TextPlain, MultipartFormData, FormURLEncoded,
  TextPlain, MultipartFormData
}
 

Public Member Functions

WEBCORE_EXPORT ~FormData ()
 
Ref< FormDatacopy () const
 
Ref< FormDataisolatedCopy () const
 
template<typename Encoder >
void encode (Encoder &) const
 
WEBCORE_EXPORT void appendData (const void *data, size_t)
 
void appendFile (const String &filePath, bool shouldGenerateFile=false)
 
WEBCORE_EXPORT void appendFileRange (const String &filename, long long start, long long length, double expectedModificationTime, bool shouldGenerateFile=false)
 
WEBCORE_EXPORT void appendBlob (const URL &blobURL)
 
char * expandDataStore (size_t)
 
void flatten (Vector< char > &) const
 
String flattenToString () const
 
Ref< FormDataresolveBlobReferences ()
 
bool isEmpty () const
 
const Vector< FormDataElement > & elements () const
 
const Vector< char > & boundary () const
 
void generateFiles (Document *)
 
void removeGeneratedFilesIfNeeded ()
 
bool alwaysStream () const
 
void setAlwaysStream (bool alwaysStream)
 
void setIdentifier (int64_t identifier)
 
int64_t identifier () const
 
bool containsPasswordData () const
 
void setContainsPasswordData (bool containsPasswordData)
 
WEBCORE_EXPORT ~FormData ()
 
Ref< FormDatacopy () const
 
Ref< FormDataisolatedCopy () const
 
template<typename Encoder >
void encode (Encoder &) const
 
WEBCORE_EXPORT void appendData (const void *data, size_t)
 
void appendFile (const String &filePath, bool shouldGenerateFile=false)
 
WEBCORE_EXPORT void appendFileRange (const String &filename, long long start, long long length, double expectedModificationTime, bool shouldGenerateFile=false)
 
WEBCORE_EXPORT void appendBlob (const URL &blobURL)
 
char * expandDataStore (size_t)
 
void flatten (Vector< char > &) const
 
String flattenToString () const
 
Ref< FormDataresolveBlobReferences ()
 
bool isEmpty () const
 
const Vector< FormDataElement > & elements () const
 
const Vector< char > & boundary () const
 
void generateFiles (Document *)
 
void removeGeneratedFilesIfNeeded ()
 
bool alwaysStream () const
 
void setAlwaysStream (bool alwaysStream)
 
void setIdentifier (int64_t identifier)
 
int64_t identifier () const
 
bool containsPasswordData () const
 
void setContainsPasswordData (bool containsPasswordData)
 
- Public Member Functions inherited from WTF::RefCounted< FormData >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static WEBCORE_EXPORT Ref< FormDatacreate ()
 
static WEBCORE_EXPORT Ref< FormDatacreate (const void *, size_t)
 
static Ref< FormDatacreate (const CString &)
 
static Ref< FormDatacreate (const Vector< char > &)
 
static Ref< FormDatacreate (const FormDataList &, const TextEncoding &, EncodingType=FormURLEncoded)
 
static Ref< FormDatacreateMultiPart (const FormDataList &, const TextEncoding &, Document *)
 
template<typename Decoder >
static RefPtr< FormDatadecode (Decoder &)
 
static EncodingType parseEncodingType (const String &type)
 
static WEBCORE_EXPORT Ref< FormDatacreate ()
 
static WEBCORE_EXPORT Ref< FormDatacreate (const void *, size_t)
 
static Ref< FormDatacreate (const CString &)
 
static Ref< FormDatacreate (const Vector< char > &)
 
static Ref< FormDatacreate (const FormDataList &, const TextEncoding &, EncodingType=FormURLEncoded)
 
static Ref< FormDatacreateMultiPart (const FormDataList &, const TextEncoding &, Document *)
 
template<typename Decoder >
static RefPtr< FormDatadecode (Decoder &)
 
static EncodingType parseEncodingType (const String &type)
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< FormData >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Enumeration Documentation

◆ EncodingType [1/2]

Enumerator
FormURLEncoded 
TextPlain 
MultipartFormData 
FormURLEncoded 
TextPlain 
MultipartFormData 

◆ EncodingType [2/2]

Enumerator
FormURLEncoded 
TextPlain 
MultipartFormData 
FormURLEncoded 
TextPlain 
MultipartFormData 

Constructor & Destructor Documentation

◆ ~FormData() [1/2]

WebCore::FormData::~FormData ( )

◆ ~FormData() [2/2]

WEBCORE_EXPORT WebCore::FormData::~FormData ( )

Member Function Documentation

◆ alwaysStream() [1/2]

bool WebCore::FormData::alwaysStream ( ) const
inline

◆ alwaysStream() [2/2]

bool WebCore::FormData::alwaysStream ( ) const
inline

◆ appendBlob() [1/2]

WEBCORE_EXPORT void WebCore::FormData::appendBlob ( const URL blobURL)

◆ appendBlob() [2/2]

void WebCore::FormData::appendBlob ( const URL blobURL)

◆ appendData() [1/2]

WEBCORE_EXPORT void WebCore::FormData::appendData ( const void data,
size_t   
)

◆ appendData() [2/2]

void WebCore::FormData::appendData ( const void data,
size_t  size 
)

◆ appendFile() [1/2]

void WebCore::FormData::appendFile ( const String filePath,
bool  shouldGenerateFile = false 
)

◆ appendFile() [2/2]

void WebCore::FormData::appendFile ( const String filePath,
bool  shouldGenerateFile = false 
)

◆ appendFileRange() [1/2]

WEBCORE_EXPORT void WebCore::FormData::appendFileRange ( const String filename,
long long  start,
long long  length,
double  expectedModificationTime,
bool  shouldGenerateFile = false 
)

◆ appendFileRange() [2/2]

void WebCore::FormData::appendFileRange ( const String filename,
long long  start,
long long  length,
double  expectedModificationTime,
bool  shouldGenerateFile = false 
)

◆ boundary() [1/2]

const Vector<char>& WebCore::FormData::boundary ( ) const
inline

◆ boundary() [2/2]

const Vector<char>& WebCore::FormData::boundary ( ) const
inline

◆ containsPasswordData() [1/2]

bool WebCore::FormData::containsPasswordData ( ) const
inline

◆ containsPasswordData() [2/2]

bool WebCore::FormData::containsPasswordData ( ) const
inline

◆ copy() [1/2]

Ref<FormData> WebCore::FormData::copy ( ) const

◆ copy() [2/2]

Ref< FormData > WebCore::FormData::copy ( ) const

◆ create() [1/10]

Ref< FormData > WebCore::FormData::create ( )
static

◆ create() [2/10]

static WEBCORE_EXPORT Ref<FormData> WebCore::FormData::create ( )
static

◆ create() [3/10]

static WEBCORE_EXPORT Ref<FormData> WebCore::FormData::create ( const void ,
size_t   
)
static

◆ create() [4/10]

Ref< FormData > WebCore::FormData::create ( const void data,
size_t  size 
)
static

◆ create() [5/10]

static Ref<FormData> WebCore::FormData::create ( const CString )
static

◆ create() [6/10]

Ref< FormData > WebCore::FormData::create ( const CString string)
static

◆ create() [7/10]

Ref< FormData > WebCore::FormData::create ( const Vector< char > &  vector)
static

◆ create() [8/10]

static Ref<FormData> WebCore::FormData::create ( const Vector< char > &  )
static

◆ create() [9/10]

static Ref<FormData> WebCore::FormData::create ( const FormDataList ,
const TextEncoding ,
EncodingType  = FormURLEncoded 
)
static

◆ create() [10/10]

Ref< FormData > WebCore::FormData::create ( const FormDataList list,
const TextEncoding encoding,
EncodingType  encodingType = FormURLEncoded 
)
static

◆ createMultiPart() [1/2]

static Ref<FormData> WebCore::FormData::createMultiPart ( const FormDataList ,
const TextEncoding ,
Document  
)
static

◆ createMultiPart() [2/2]

Ref< FormData > WebCore::FormData::createMultiPart ( const FormDataList list,
const TextEncoding encoding,
Document document 
)
static

◆ decode() [1/2]

template<typename Decoder >
static RefPtr<FormData> WebCore::FormData::decode ( Decoder &  )
static

◆ decode() [2/2]

template<typename Decoder >
RefPtr< FormData > WebCore::FormData::decode ( Decoder &  decoder)
static

◆ elements() [1/2]

const Vector<FormDataElement>& WebCore::FormData::elements ( ) const
inline

◆ elements() [2/2]

const Vector<FormDataElement>& WebCore::FormData::elements ( ) const
inline

◆ encode() [1/2]

template<typename Encoder >
void WebCore::FormData::encode ( Encoder &  encoder) const

◆ encode() [2/2]

template<typename Encoder >
void WebCore::FormData::encode ( Encoder &  ) const

◆ expandDataStore() [1/2]

char* WebCore::FormData::expandDataStore ( size_t  )

◆ expandDataStore() [2/2]

char * WebCore::FormData::expandDataStore ( size_t  size)

◆ flatten() [1/2]

void WebCore::FormData::flatten ( Vector< char > &  data) const

◆ flatten() [2/2]

void WebCore::FormData::flatten ( Vector< char > &  ) const

◆ flattenToString() [1/2]

String WebCore::FormData::flattenToString ( ) const

◆ flattenToString() [2/2]

String WebCore::FormData::flattenToString ( ) const

◆ generateFiles() [1/2]

void WebCore::FormData::generateFiles ( Document )

◆ generateFiles() [2/2]

void WebCore::FormData::generateFiles ( Document document)

◆ identifier() [1/2]

int64_t WebCore::FormData::identifier ( ) const
inline

◆ identifier() [2/2]

int64_t WebCore::FormData::identifier ( ) const
inline

◆ isEmpty() [1/2]

bool WebCore::FormData::isEmpty ( ) const
inline

◆ isEmpty() [2/2]

bool WebCore::FormData::isEmpty ( void  ) const
inline

◆ isolatedCopy() [1/2]

Ref<FormData> WebCore::FormData::isolatedCopy ( ) const

◆ isolatedCopy() [2/2]

Ref< FormData > WebCore::FormData::isolatedCopy ( ) const

◆ parseEncodingType() [1/2]

static EncodingType WebCore::FormData::parseEncodingType ( const String type)
inlinestatic

◆ parseEncodingType() [2/2]

static EncodingType WebCore::FormData::parseEncodingType ( const String type)
inlinestatic

◆ removeGeneratedFilesIfNeeded() [1/2]

void WebCore::FormData::removeGeneratedFilesIfNeeded ( )

◆ removeGeneratedFilesIfNeeded() [2/2]

void WebCore::FormData::removeGeneratedFilesIfNeeded ( )

◆ resolveBlobReferences() [1/2]

Ref< FormData > WebCore::FormData::resolveBlobReferences ( )

◆ resolveBlobReferences() [2/2]

Ref<FormData> WebCore::FormData::resolveBlobReferences ( )

◆ setAlwaysStream() [1/2]

void WebCore::FormData::setAlwaysStream ( bool  alwaysStream)
inline

◆ setAlwaysStream() [2/2]

void WebCore::FormData::setAlwaysStream ( bool  alwaysStream)
inline

◆ setContainsPasswordData() [1/2]

void WebCore::FormData::setContainsPasswordData ( bool  containsPasswordData)
inline

◆ setContainsPasswordData() [2/2]

void WebCore::FormData::setContainsPasswordData ( bool  containsPasswordData)
inline

◆ setIdentifier() [1/2]

void WebCore::FormData::setIdentifier ( int64_t  identifier)
inline

◆ setIdentifier() [2/2]

void WebCore::FormData::setIdentifier ( int64_t  identifier)
inline

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