OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "config.h" | 31 #include "config.h" |
32 #include "AsyncFileWriterChromium.h" | 32 #include "AsyncFileWriterChromium.h" |
33 | 33 |
34 #include "WebFileWriter.h" | 34 #include "WebFileWriter.h" |
35 #include "core/fileapi/Blob.h" | 35 #include "core/fileapi/Blob.h" |
36 #include "modules/filesystem/AsyncFileWriterClient.h" | 36 #include "modules/filesystem/AsyncFileWriterClient.h" |
37 #include "public/platform/WebURL.h" | 37 #include "public/platform/WebURL.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
| 41 PassOwnPtr<AsyncFileWriterChromium> AsyncFileWriterChromium::create(AsyncFileWri
terClient* client) |
| 42 { |
| 43 return adoptPtr(new AsyncFileWriterChromium(client)); |
| 44 } |
| 45 |
41 AsyncFileWriterChromium::AsyncFileWriterChromium(AsyncFileWriterClient* client) | 46 AsyncFileWriterChromium::AsyncFileWriterChromium(AsyncFileWriterClient* client) |
42 : m_client(client) | 47 : m_client(client) |
43 { | 48 { |
44 } | 49 } |
45 | 50 |
46 AsyncFileWriterChromium::~AsyncFileWriterChromium() | 51 AsyncFileWriterChromium::~AsyncFileWriterChromium() |
47 { | 52 { |
48 } | 53 } |
49 | 54 |
50 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter>
writer) | 55 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter>
writer) |
(...skipping 29 matching lines...) Expand all Loading... |
80 { | 85 { |
81 m_client->didTruncate(); | 86 m_client->didTruncate(); |
82 } | 87 } |
83 | 88 |
84 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error) | 89 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error) |
85 { | 90 { |
86 m_client->didFail(static_cast<FileError::ErrorCode>(error)); | 91 m_client->didFail(static_cast<FileError::ErrorCode>(error)); |
87 } | 92 } |
88 | 93 |
89 } // namespace | 94 } // namespace |
OLD | NEW |