コード例 #1
0
void WorkerFileSystemCallbacksBridge::postCopyToMainThread(WebFileSystem* fileSystem, const KURL& sourcePath, const KURL& destinationPath, const String& mode)
{
    dispatchTaskToMainThread(
        createCallbackTask(&copyOnMainThread,
                           AllowCrossThreadAccess(fileSystem), sourcePath, destinationPath,
                           this, mode));
}
コード例 #2
0
void WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread(WebCommonWorkerClient* commonClient, WebFileSystem::Type type, long long size, bool create, const String& mode)
{
    dispatchTaskToMainThread(
        createCallbackTask(&openFileSystemOnMainThread,
                           AllowCrossThreadAccess(commonClient), type, size, create,
                           this, mode));
}
コード例 #3
0
void WorkerFileSystemCallbacksBridge::postCreateFileToMainThread(WebFileSystem* fileSystem, const KURL& path, bool exclusive, const String& mode)
{
    dispatchTaskToMainThread(
        createCallbackTask(&createFileOnMainThread,
                           AllowCrossThreadAccess(fileSystem), path, exclusive,
                           this, mode));
}
コード例 #4
0
void WorkerFileWriterCallbacksBridge::postWriteToMainThread(long long position, const KURL& data)
{
    ASSERT(!m_operationInProgress);
    m_operationInProgress = true;
    dispatchTaskToMainThread(createCallbackTask(&writeOnMainThread, 
                                                this, position, data));
}
コード例 #5
0
void WorkerFileWriterCallbacksBridge::postTruncateToMainThread(long long length)
{
    ASSERT(!m_operationInProgress);
    m_operationInProgress = true;
    dispatchTaskToMainThread(createCallbackTask(&truncateOnMainThread, 
                                                this, length));
}
コード例 #6
0
void WorkerFileSystemCallbacksBridge::postRemoveRecursivelyToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode)
{
    ASSERT(fileSystem);
    dispatchTaskToMainThread(
        createCallbackTask(&removeRecursivelyOnMainThread,
                           AllowCrossThreadAccess(fileSystem), path,
                           this, mode));
}
コード例 #7
0
void WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode)
{
    ASSERT(fileSystem);
    dispatchTaskToMainThread(
        createCallbackTask(&createSnapshotFileOnMainThread,
                           AllowCrossThreadAccess(fileSystem),
                           path, this, mode));
}
コード例 #8
0
void WebWorkerBase::postExceptionToWorkerObject(const String& errorMessage,
                                                int lineNumber,
                                                const String& sourceURL)
{
    dispatchTaskToMainThread(createCallbackTask(&postExceptionTask, this,
                                                errorMessage, lineNumber,
                                                sourceURL));
}
コード例 #9
0
void WorkerFileSystemCallbacksBridge::postDirectoryExistsToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode)
{
    ASSERT(fileSystem);
    dispatchTaskToMainThread(
        createCallbackTask(&directoryExistsOnMainThread,
                           AllowCrossThreadAccess(fileSystem), path,
                           this, mode));
}
コード例 #10
0
void WebWorkerBase::postConsoleMessageToWorkerObject(MessageSource source,
                                                     MessageType type,
                                                     MessageLevel level,
                                                     const String& message,
                                                     int lineNumber,
                                                     const String& sourceURL)
{
    dispatchTaskToMainThread(createCallbackTask(&postConsoleMessageTask, this,
                                                source, type, level,
                                                message, lineNumber, sourceURL));
}
コード例 #11
0
void WebWorkerBase::postMessageToWorkerObject(PassRefPtr<SerializedScriptValue> message,
                                              PassOwnPtr<MessagePortChannelArray> channels)
{
    dispatchTaskToMainThread(createCallbackTask(&postMessageTask, this,
                                                message->toWireString(), channels));
}
コード例 #12
0
ファイル: WebWorkerBase.cpp プロジェクト: sysrqb/chromium-src
void WebWorkerBase::reportPendingActivity(bool hasPendingActivity)
{
    dispatchTaskToMainThread(createCallbackTask(&reportPendingActivityTask,
                                                AllowCrossThreadAccess(this),
                                                hasPendingActivity));
}
コード例 #13
0
void WorkerFileWriterCallbacksBridge::postInitToMainThread(const KURL& path)
{
    dispatchTaskToMainThread(
        createCallbackTask(&initOnMainThread, this, path));
}
コード例 #14
0
void WebWorkerBase::workerContextDestroyed()
{
    dispatchTaskToMainThread(createCallbackTask(&workerContextDestroyedTask,
                                                this));
}
コード例 #15
0
void WebWorkerBase::reportPendingActivity(bool hasPendingActivity)
{
    dispatchTaskToMainThread(createCallbackTask(&reportPendingActivityTask,
                                                this, hasPendingActivity));
}
コード例 #16
0
void WebWorkerBase::confirmMessageFromWorkerObject(bool hasPendingActivity)
{
    dispatchTaskToMainThread(createCallbackTask(&confirmMessageTask, this,
                                                hasPendingActivity));
}
コード例 #17
0
ファイル: WebWorkerBase.cpp プロジェクト: sysrqb/chromium-src
void WebWorkerBase::updateInspectorStateCookie(const WTF::String& cookie)
{
    dispatchTaskToMainThread(createCallbackTask(&updateInspectorStateCookieTask, AllowCrossThreadAccess(this), cookie));
}
コード例 #18
0
void WorkerFileWriterCallbacksBridge::postAbortToMainThread()
{
    ASSERT(m_operationInProgress);
    dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, this));
}
コード例 #19
0
ファイル: WebWorkerBase.cpp プロジェクト: sysrqb/chromium-src
void WebWorkerBase::workerContextDestroyed()
{
    dispatchTaskToMainThread(createCallbackTask(&workerContextDestroyedTask,
                                                AllowCrossThreadAccess(this)));
}
コード例 #20
0
void WorkerFileWriterCallbacksBridge::postShutdownToMainThread(PassRefPtr<WorkerFileWriterCallbacksBridge> bridge)
{
    ASSERT(m_workerContext->isContextThread());
    m_clientOnWorkerThread = 0;
    dispatchTaskToMainThread(createCallbackTask(&shutdownOnMainThread, bridge));
}
コード例 #21
0
ファイル: WebWorkerBase.cpp プロジェクト: sysrqb/chromium-src
void WebWorkerBase::postMessageToPageInspector(const String& message)
{
    dispatchTaskToMainThread(createCallbackTask(&postMessageToPageInspectorTask, AllowCrossThreadAccess(this), message));
}