コード例 #1
0
ファイル: DOMURL.cpp プロジェクト: smil-in-javascript/blink
String DOMURL::createObjectURL(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState)
{
    if (!executionContext || !blob)
        return String();
    if (blob->hasBeenClosed()) {
        exceptionState.throwDOMException(InvalidStateError, String(blob->isFile() ? "File" : "Blob") + " has been closed.");
        return String();
    }
    return createPublicURL(executionContext, blob, blob->uuid());
}
コード例 #2
0
ファイル: DOMURL.cpp プロジェクト: Metrological/chromium
String DOMURL::createObjectURL(ExecutionContext* executionContext, Blob* blob)
{
    if (!executionContext || !blob)
        return String();
    return createPublicURL(executionContext, blob);
}
コード例 #3
0
ファイル: DOMURL.cpp プロジェクト: biddyweb/switch-oss
String DOMURL::createObjectURL(ScriptExecutionContext* scriptExecutionContext, Blob* blob)
{
    if (!scriptExecutionContext || !blob)
        return String();
    return createPublicURL(scriptExecutionContext, blob);
}