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

Unified Diff: Source/web/AsyncFileWriterChromium.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/AsyncFileSystemChromium.cpp ('k') | Source/web/AsyncFileWriterChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/AsyncFileWriterChromium.h
diff --git a/Source/web/AsyncFileWriterChromium.h b/Source/web/AsyncFileWriterChromium.h
index a20ef3132454415596d9e9aa03a9ebb608658e56..358c82b769cda75462515b0339935307a7a74520 100644
--- a/Source/web/AsyncFileWriterChromium.h
+++ b/Source/web/AsyncFileWriterChromium.h
@@ -47,9 +47,9 @@ class AsyncFileWriterClient;
class AsyncFileWriterChromium : public AsyncFileWriter, public WebKit::WebFileWriterClient {
public:
- AsyncFileWriterChromium(AsyncFileWriterClient* client);
- ~AsyncFileWriterChromium();
-
+ static PassOwnPtr<AsyncFileWriterChromium> create(AsyncFileWriterClient*);
+ virtual ~AsyncFileWriterChromium();
+
void setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter> writer);
// FileWriter
@@ -63,6 +63,8 @@ public:
virtual void didFail(WebKit::WebFileError);
private:
+ explicit AsyncFileWriterChromium(AsyncFileWriterClient*);
+
OwnPtr<WebKit::WebFileWriter> m_writer;
AsyncFileWriterClient* m_client;
};
« no previous file with comments | « Source/web/AsyncFileSystemChromium.cpp ('k') | Source/web/AsyncFileWriterChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698