| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/child/fileapi/webfilewriter_impl.h" | 5 #include "content/child/fileapi/webfilewriter_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "content/child/child_thread.h" | 10 #include "content/child/child_thread.h" |
| 11 #include "content/child/fileapi/file_system_dispatcher.h" | 11 #include "content/child/fileapi/file_system_dispatcher.h" |
| 12 #include "webkit/child/worker_task_runner.h" | 12 #include "content/child/worker_task_runner.h" |
| 13 | |
| 14 using webkit_glue::WorkerTaskRunner; | |
| 15 | 13 |
| 16 namespace content { | 14 namespace content { |
| 17 | 15 |
| 18 namespace { | 16 namespace { |
| 19 | 17 |
| 20 FileSystemDispatcher* GetFileSystemDispatcher() { | 18 FileSystemDispatcher* GetFileSystemDispatcher() { |
| 21 return ChildThread::current() ? | 19 return ChildThread::current() ? |
| 22 ChildThread::current()->file_system_dispatcher() : NULL; | 20 ChildThread::current()->file_system_dispatcher() : NULL; |
| 23 } | 21 } |
| 24 | 22 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 DCHECK(!bridge_->waitable_event()); | 155 DCHECK(!bridge_->waitable_event()); |
| 158 closure.Run(); | 156 closure.Run(); |
| 159 return; | 157 return; |
| 160 } | 158 } |
| 161 main_thread_loop_->PostTask(FROM_HERE, closure); | 159 main_thread_loop_->PostTask(FROM_HERE, closure); |
| 162 if (bridge_->waitable_event()) | 160 if (bridge_->waitable_event()) |
| 163 bridge_->WaitAndRun(); | 161 bridge_->WaitAndRun(); |
| 164 } | 162 } |
| 165 | 163 |
| 166 } // namespace content | 164 } // namespace content |
| OLD | NEW |