コード例 #1
0
static std::unique_ptr<BlobData> createBlobDataForFileWithName(
    const String& path,
    const String& fileSystemName,
    File::ContentTypeLookupPolicy policy) {
  return createBlobDataForFileWithType(
      path, getContentTypeFromFileName(fileSystemName, policy));
}
コード例 #2
0
ファイル: File.cpp プロジェクト: 1833183060/wke
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);
}
コード例 #3
0
ファイル: File.cpp プロジェクト: 1833183060/wke
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);
}
コード例 #4
0
static PassOwnPtr<BlobData> createBlobDataForFile(const String& path, File::ContentTypeLookupPolicy policy)
{
    return createBlobDataForFileWithType(path, getContentTypeFromFileName(path, policy));
}
コード例 #5
0
ファイル: File.cpp プロジェクト: Spencerx/webkit
static PassOwnPtr<BlobData> createBlobDataForFileWithName(const String& path, const String& fileSystemName)
{
    return createBlobDataForFileWithType(path, getContentTypeFromFileName(fileSystemName));
}