webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | List of all members
WebCore::File Class Referencefinal

#include <File.h>

Inheritance diagram for WebCore::File:
WebCore::Blob WebCore::Blob WTF::RefCounted< Blob > WebCore::URLRegistrable WebCore::ScriptWrappable WTF::RefCounted< Blob > WebCore::URLRegistrable WebCore::ScriptWrappable WTF::RefCounted< Blob > WebCore::URLRegistrable WebCore::ScriptWrappable WTF::RefCounted< Blob > WebCore::URLRegistrable WebCore::ScriptWrappable

Classes

struct  PropertyBag
 

Public Member Functions

bool isFile () const override
 
const Stringpath () const
 
const Stringname () const
 
WEBCORE_EXPORT double lastModified () const
 
bool isFile () const override
 
const Stringpath () const
 
const Stringname () const
 
WEBCORE_EXPORT double lastModified () const
 
- Public Member Functions inherited from WebCore::Blob
virtual ~Blob ()
 
const URLurl () const
 
const Stringtype () const
 
WEBCORE_EXPORT unsigned long long size () const
 
URLRegistryregistry () const override
 
Ref< Blobslice (long long start=0, long long end=std::numeric_limits< long long >::max(), const String &contentType=String()) const
 
virtual ~Blob ()
 
const URLurl () const
 
const Stringtype () const
 
WEBCORE_EXPORT unsigned long long size () const
 
URLRegistryregistry () const override
 
Ref< Blobslice (long long start=0, long long end=std::numeric_limits< long long >::max(), const String &contentType=String()) const
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
- Public Member Functions inherited from WebCore::URLRegistrable
virtual ~URLRegistrable ()
 
virtual ~URLRegistrable ()
 
- Public Member Functions inherited from WTF::RefCounted< Blob >
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 Ref< Filecreate (const String &path)
 
static Ref< Filecreate (Vector< BlobPartVariant > &&blobPartVariants, const String &filename, const PropertyBag &propertyBag)
 
static Ref< Filedeserialize (const String &path, const URL &srcURL, const String &type, const String &name)
 
static Ref< FilecreateWithName (const String &path, const String &nameOverride)
 
static String contentTypeForFile (const String &path)
 
static Ref< Filecreate (const String &path)
 
static Ref< Filecreate (Vector< BlobPartVariant > &&blobPartVariants, const String &filename, const PropertyBag &propertyBag)
 
static Ref< Filedeserialize (const String &path, const URL &srcURL, const String &type, const String &name)
 
static Ref< FilecreateWithName (const String &path, const String &nameOverride)
 
static String contentTypeForFile (const String &path)
 
- Static Public Member Functions inherited from WebCore::Blob
static Ref< Blobcreate ()
 
static Ref< Blobcreate (Vector< BlobPartVariant > &&blobPartVariants, const BlobPropertyBag &propertyBag)
 
static Ref< Blobcreate (Vector< uint8_t > &&data, const String &contentType)
 
static Ref< Blobdeserialize (const URL &srcURL, const String &type, long long size, const String &fileBackedPath)
 
static bool isValidContentType (const String &)
 
static String normalizedContentType (const String &)
 
static bool isNormalizedContentType (const String &)
 
static bool isNormalizedContentType (const CString &)
 
static Ref< Blobcreate ()
 
static Ref< Blobcreate (Vector< BlobPartVariant > &&blobPartVariants, const BlobPropertyBag &propertyBag)
 
static Ref< Blobcreate (Vector< uint8_t > &&data, const String &contentType)
 
static Ref< Blobdeserialize (const URL &srcURL, const String &type, long long size, const String &fileBackedPath)
 
static bool isValidContentType (const String &)
 
static String normalizedContentType (const String &)
 
static bool isNormalizedContentType (const String &)
 
static bool isNormalizedContentType (const CString &)
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Additional Inherited Members

- Protected Types inherited from WebCore::Blob
enum  UninitializedContructor { uninitializedContructor, uninitializedContructor }
 
enum  DeserializationContructor { deserializationContructor, deserializationContructor }
 
enum  UninitializedContructor { uninitializedContructor, uninitializedContructor }
 
enum  DeserializationContructor { deserializationContructor, deserializationContructor }
 
- Protected Member Functions inherited from WebCore::Blob
 Blob ()
 
 Blob (Vector< BlobPartVariant > &&, const BlobPropertyBag &)
 
 Blob (Vector< uint8_t > &&, const String &contentType)
 
 Blob (UninitializedContructor)
 
 Blob (DeserializationContructor, const URL &srcURL, const String &type, long long size, const String &fileBackedPath)
 
 Blob (const URL &srcURL, long long start, long long end, const String &contentType)
 
 Blob ()
 
 Blob (Vector< BlobPartVariant > &&, const BlobPropertyBag &)
 
 Blob (Vector< uint8_t > &&, const String &contentType)
 
 Blob (UninitializedContructor)
 
 Blob (DeserializationContructor, const URL &srcURL, const String &type, long long size, const String &fileBackedPath)
 
 Blob (const URL &srcURL, long long start, long long end, const String &contentType)
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WTF::RefCounted< Blob >
 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
 
- Protected Attributes inherited from WebCore::Blob
URL m_internalURL
 
String m_type
 
long long m_size
 

Member Function Documentation

◆ contentTypeForFile() [1/2]

String File::contentTypeForFile ( const String path)
static

◆ contentTypeForFile() [2/2]

static String WebCore::File::contentTypeForFile ( const String path)
static

◆ create() [1/4]

static Ref<File> WebCore::File::create ( const String path)
inlinestatic

◆ create() [2/4]

static Ref<File> WebCore::File::create ( const String path)
inlinestatic

◆ create() [3/4]

static Ref<File> WebCore::File::create ( Vector< BlobPartVariant > &&  blobPartVariants,
const String filename,
const PropertyBag propertyBag 
)
inlinestatic

◆ create() [4/4]

static Ref<File> WebCore::File::create ( Vector< BlobPartVariant > &&  blobPartVariants,
const String filename,
const PropertyBag propertyBag 
)
inlinestatic

◆ createWithName() [1/2]

static Ref<File> WebCore::File::createWithName ( const String path,
const String nameOverride 
)
inlinestatic

◆ createWithName() [2/2]

static Ref<File> WebCore::File::createWithName ( const String path,
const String nameOverride 
)
inlinestatic

◆ deserialize() [1/2]

static Ref<File> WebCore::File::deserialize ( const String path,
const URL srcURL,
const String type,
const String name 
)
inlinestatic

◆ deserialize() [2/2]

static Ref<File> WebCore::File::deserialize ( const String path,
const URL srcURL,
const String type,
const String name 
)
inlinestatic

◆ isFile() [1/2]

bool WebCore::File::isFile ( ) const
inlineoverridevirtual

Reimplemented from WebCore::Blob.

◆ isFile() [2/2]

bool WebCore::File::isFile ( ) const
inlineoverridevirtual

Reimplemented from WebCore::Blob.

◆ lastModified() [1/2]

double File::lastModified ( ) const

◆ lastModified() [2/2]

WEBCORE_EXPORT double WebCore::File::lastModified ( ) const

◆ name() [1/2]

const String& WebCore::File::name ( ) const
inline

◆ name() [2/2]

const String& WebCore::File::name ( ) const
inline

◆ path() [1/2]

const String& WebCore::File::path ( ) const
inline

◆ path() [2/2]

const String& WebCore::File::path ( ) const
inline

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