| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WorkerAsyncFileWriterChromium.h" | 32 #include "WorkerAsyncFileWriterChromium.h" |
| 33 | 33 |
| 34 #include "WebFileWriter.h" | 34 #include "WebFileWriter.h" |
| 35 #include "WebWorkerBase.h" | 35 #include "WebWorkerBase.h" |
| 36 #include "WorkerContext.h" | |
| 37 #include "WorkerFileWriterCallbacksBridge.h" | 36 #include "WorkerFileWriterCallbacksBridge.h" |
| 38 #include "WorkerLoaderProxy.h" | |
| 39 #include "WorkerThread.h" | |
| 40 #include "core/dom/ScriptExecutionContext.h" | 37 #include "core/dom/ScriptExecutionContext.h" |
| 41 #include "core/fileapi/Blob.h" | 38 #include "core/fileapi/Blob.h" |
| 42 #include "core/platform/AsyncFileSystem.h" | 39 #include "core/platform/AsyncFileSystem.h" |
| 40 #include "core/workers/WorkerContext.h" |
| 41 #include "core/workers/WorkerLoaderProxy.h" |
| 42 #include "core/workers/WorkerThread.h" |
| 43 #include <public/WebFileSystem.h> | 43 #include <public/WebFileSystem.h> |
| 44 #include <public/WebURL.h> | 44 #include <public/WebURL.h> |
| 45 #include <wtf/Assertions.h> | 45 #include <wtf/Assertions.h> |
| 46 | 46 |
| 47 using namespace WebKit; | 47 using namespace WebKit; |
| 48 | 48 |
| 49 namespace WebCore { | 49 namespace WebCore { |
| 50 | 50 |
| 51 WorkerAsyncFileWriterChromium::WorkerAsyncFileWriterChromium(WebFileSystem* webF
ileSystem, const WebURL& path, WorkerContext* workerContext, AsyncFileWriterClie
nt* client, WriterType type) | 51 WorkerAsyncFileWriterChromium::WorkerAsyncFileWriterChromium(WebFileSystem* webF
ileSystem, const WebURL& path, WorkerContext* workerContext, AsyncFileWriterClie
nt* client, WriterType type) |
| 52 { | 52 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 75 { | 75 { |
| 76 m_bridge->postTruncateToMainThread(length); | 76 m_bridge->postTruncateToMainThread(length); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void WorkerAsyncFileWriterChromium::abort() | 79 void WorkerAsyncFileWriterChromium::abort() |
| 80 { | 80 { |
| 81 m_bridge->postAbortToMainThread(); | 81 m_bridge->postAbortToMainThread(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 } | 84 } |
| OLD | NEW |