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; |
}; |