static std::unique_ptr<BlobData> createBlobDataForFileWithName( const String& path, const String& fileSystemName, File::ContentTypeLookupPolicy policy) { return createBlobDataForFileWithType( path, getContentTypeFromFileName(fileSystemName, policy)); }
static PassOwnPtr<BlobData> createBlobDataForFileSystemFile(const String& path, const String& fileSystemName) { String type; int index = fileSystemName.reverseFind('.'); if (index != -1) type = MIMETypeRegistry::getWellKnownMIMETypeForExtension(fileSystemName.substring(index + 1)); return createBlobDataForFileWithType(path, type); }
static PassOwnPtr<BlobData> createBlobDataForFile(const String& path) { String type; int index = path.reverseFind('.'); if (index != -1) type = MIMETypeRegistry::getMIMETypeForExtension(path.substring(index + 1)); return createBlobDataForFileWithType(path, type); }
static PassOwnPtr<BlobData> createBlobDataForFile(const String& path, File::ContentTypeLookupPolicy policy) { return createBlobDataForFileWithType(path, getContentTypeFromFileName(path, policy)); }
static PassOwnPtr<BlobData> createBlobDataForFileWithName(const String& path, const String& fileSystemName) { return createBlobDataForFileWithType(path, getContentTypeFromFileName(fileSystemName)); }