Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1098)

Unified Diff: Source/web/WebFileSystemCallbacksImpl.h

Issue 18411005: Use the async version of WebFileSystem::createFileWriter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/AsyncFileWriterChromium.cpp ('k') | Source/web/WebFileSystemCallbacksImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFileSystemCallbacksImpl.h
diff --git a/Source/web/WebFileSystemCallbacksImpl.h b/Source/web/WebFileSystemCallbacksImpl.h
index f00ae209a057045c0f89d23e8c45a339e40ec0cf..06d1f8c137e5f2b4b79a32f1f23488157d49982b 100644
--- a/Source/web/WebFileSystemCallbacksImpl.h
+++ b/Source/web/WebFileSystemCallbacksImpl.h
@@ -40,6 +40,7 @@
namespace WebCore {
class AsyncFileSystemCallbacks;
+class AsyncFileWriterChromium;
class BlobDataHandle;
class ScriptExecutionContext;
}
@@ -54,6 +55,7 @@ class WebURL;
class WebFileSystemCallbacksImpl : public WebFileSystemCallbacks {
public:
WebFileSystemCallbacksImpl(PassOwnPtr<WebCore::AsyncFileSystemCallbacks>, WebCore::ScriptExecutionContext* = 0, WebCore::FileSystemSynchronousType = WebCore::AsynchronousFileSystem);
+ WebFileSystemCallbacksImpl(PassOwnPtr<WebCore::AsyncFileSystemCallbacks>, PassOwnPtr<WebCore::AsyncFileWriterChromium>);
virtual ~WebFileSystemCallbacksImpl();
virtual void didSucceed();
@@ -61,6 +63,7 @@ public:
virtual void didCreateSnapshotFile(const WebFileInfo&);
virtual void didReadDirectory(const WebVector<WebFileSystemEntry>& entries, bool hasMore);
virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL);
+ virtual void didCreateFileWriter(WebFileWriter*, long long length);
virtual void didFail(WebFileError error);
virtual bool shouldBlockUntilCompletion() const;
@@ -75,6 +78,9 @@ private:
// Used for worker's openFileSystem callbacks.
WebCore::ScriptExecutionContext* m_context;
WebCore::FileSystemSynchronousType m_synchronousType;
+
+ // Used for createFileWriter callbacks.
+ OwnPtr<WebCore::AsyncFileWriterChromium> m_writer;
};
} // namespace WebKit
« no previous file with comments | « Source/web/AsyncFileWriterChromium.cpp ('k') | Source/web/WebFileSystemCallbacksImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698