diff options
Diffstat (limited to 'WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h')
-rw-r--r-- | WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h b/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h index d2e416e..62e333c 100644 --- a/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h +++ b/WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h @@ -106,6 +106,9 @@ public: void didFail(WebFileError); void didTruncate(); + // Call this on the context thread to wait for the current operation to complete. + bool waitForOperationToComplete(); + private: WorkerFileWriterCallbacksBridge(const String& path, WebCore::WorkerLoaderProxy*, WebCore::ScriptExecutionContext*, WebCore::AsyncFileWriterClient*); @@ -147,6 +150,12 @@ private: // Used to indicate that shutdown has started on the main thread, and hence the writer has been deleted. bool m_writerDeleted; + + // Used by waitForOperationToComplete. + bool m_operationInProgress; + + // Used by postTaskForModeToWorkerContext and runInMode. + String m_mode; }; } // namespace WebCore |