void WorkerFileSystemCallbacksBridge::postCopyToMainThread(WebFileSystem* fileSystem, const KURL& sourcePath, const KURL& destinationPath, const String& mode) { dispatchTaskToMainThread( createCallbackTask(©OnMainThread, AllowCrossThreadAccess(fileSystem), sourcePath, destinationPath, this, mode)); }
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)); }
void WorkerFileSystemCallbacksBridge::postCreateFileToMainThread(WebFileSystem* fileSystem, const KURL& path, bool exclusive, const String& mode) { dispatchTaskToMainThread( createCallbackTask(&createFileOnMainThread, AllowCrossThreadAccess(fileSystem), path, exclusive, this, mode)); }
void WorkerFileWriterCallbacksBridge::postWriteToMainThread(long long position, const KURL& data) { ASSERT(!m_operationInProgress); m_operationInProgress = true; dispatchTaskToMainThread(createCallbackTask(&writeOnMainThread, this, position, data)); }
void WorkerFileWriterCallbacksBridge::postTruncateToMainThread(long long length) { ASSERT(!m_operationInProgress); m_operationInProgress = true; dispatchTaskToMainThread(createCallbackTask(&truncateOnMainThread, this, length)); }
void WorkerFileSystemCallbacksBridge::postRemoveRecursivelyToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode) { ASSERT(fileSystem); dispatchTaskToMainThread( createCallbackTask(&removeRecursivelyOnMainThread, AllowCrossThreadAccess(fileSystem), path, this, mode)); }
void WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode) { ASSERT(fileSystem); dispatchTaskToMainThread( createCallbackTask(&createSnapshotFileOnMainThread, AllowCrossThreadAccess(fileSystem), path, this, mode)); }
void WebWorkerBase::postExceptionToWorkerObject(const String& errorMessage, int lineNumber, const String& sourceURL) { dispatchTaskToMainThread(createCallbackTask(&postExceptionTask, this, errorMessage, lineNumber, sourceURL)); }
void WorkerFileSystemCallbacksBridge::postDirectoryExistsToMainThread(WebFileSystem* fileSystem, const KURL& path, const String& mode) { ASSERT(fileSystem); dispatchTaskToMainThread( createCallbackTask(&directoryExistsOnMainThread, AllowCrossThreadAccess(fileSystem), path, this, mode)); }
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)); }
void WebWorkerBase::postMessageToWorkerObject(PassRefPtr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) { dispatchTaskToMainThread(createCallbackTask(&postMessageTask, this, message->toWireString(), channels)); }
void WebWorkerBase::reportPendingActivity(bool hasPendingActivity) { dispatchTaskToMainThread(createCallbackTask(&reportPendingActivityTask, AllowCrossThreadAccess(this), hasPendingActivity)); }
void WorkerFileWriterCallbacksBridge::postInitToMainThread(const KURL& path) { dispatchTaskToMainThread( createCallbackTask(&initOnMainThread, this, path)); }
void WebWorkerBase::workerContextDestroyed() { dispatchTaskToMainThread(createCallbackTask(&workerContextDestroyedTask, this)); }
void WebWorkerBase::reportPendingActivity(bool hasPendingActivity) { dispatchTaskToMainThread(createCallbackTask(&reportPendingActivityTask, this, hasPendingActivity)); }
void WebWorkerBase::confirmMessageFromWorkerObject(bool hasPendingActivity) { dispatchTaskToMainThread(createCallbackTask(&confirmMessageTask, this, hasPendingActivity)); }
void WebWorkerBase::updateInspectorStateCookie(const WTF::String& cookie) { dispatchTaskToMainThread(createCallbackTask(&updateInspectorStateCookieTask, AllowCrossThreadAccess(this), cookie)); }
void WorkerFileWriterCallbacksBridge::postAbortToMainThread() { ASSERT(m_operationInProgress); dispatchTaskToMainThread(createCallbackTask(&abortOnMainThread, this)); }
void WebWorkerBase::workerContextDestroyed() { dispatchTaskToMainThread(createCallbackTask(&workerContextDestroyedTask, AllowCrossThreadAccess(this))); }
void WorkerFileWriterCallbacksBridge::postShutdownToMainThread(PassRefPtr<WorkerFileWriterCallbacksBridge> bridge) { ASSERT(m_workerContext->isContextThread()); m_clientOnWorkerThread = 0; dispatchTaskToMainThread(createCallbackTask(&shutdownOnMainThread, bridge)); }
void WebWorkerBase::postMessageToPageInspector(const String& message) { dispatchTaskToMainThread(createCallbackTask(&postMessageToPageInspectorTask, AllowCrossThreadAccess(this), message)); }