Index: WebKit/chromium/src/WebFileSystemCallbacksImpl.h |
=================================================================== |
--- WebKit/chromium/src/WebFileSystemCallbacksImpl.h (revision 140218) |
+++ WebKit/chromium/src/WebFileSystemCallbacksImpl.h (working copy) |
@@ -40,6 +40,7 @@ |
namespace WebCore { |
class AsyncFileSystemCallbacks; |
+class BlobDataHandle; |
class ScriptExecutionContext; |
} |
@@ -57,10 +58,16 @@ |
virtual void didSucceed(); |
virtual void didReadMetadata(const WebFileInfo& info); |
+ virtual void didCreateSnapshotFile(const WebFileInfo& info); |
virtual void didReadDirectory(const WebVector<WebFileSystemEntry>& entries, bool hasMore); |
virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL); |
virtual void didFail(WebFileError error); |
+ // This internal overload is used by WorkerFileSystemCallbacksBridge to deliver a blob data handle |
+ // created on the main thread to an AsyncFileSystemCallback on a background worker thread. The other |
+ // virtual method is invoked by the embedder. |
+ void didCreateSnapshotFile(const WebFileInfo& info, PassRefPtr<WebCore::BlobDataHandle> snapshot); |
+ |
private: |
OwnPtr<WebCore::AsyncFileSystemCallbacks> m_callbacks; |