| 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/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "content/child/child_thread_impl.h" | 10 #include "content/child/child_thread_impl.h" |
| 11 #include "content/child/fileapi/file_system_dispatcher.h" | 11 #include "content/child/fileapi/file_system_dispatcher.h" |
| 12 #include "content/public/child/worker_thread.h" | 12 #include "content/public/child/worker_thread.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 FileSystemDispatcher* GetFileSystemDispatcher() { | 18 FileSystemDispatcher* GetFileSystemDispatcher() { |
| 19 return ChildThreadImpl::current() ? | 19 return ChildThreadImpl::current() ? |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 DCHECK(!bridge_->waitable_event()); | 163 DCHECK(!bridge_->waitable_event()); |
| 164 closure.Run(); | 164 closure.Run(); |
| 165 return; | 165 return; |
| 166 } | 166 } |
| 167 main_thread_task_runner_->PostTask(FROM_HERE, closure); | 167 main_thread_task_runner_->PostTask(FROM_HERE, closure); |
| 168 if (bridge_->waitable_event()) | 168 if (bridge_->waitable_event()) |
| 169 bridge_->WaitAndRun(); | 169 bridge_->WaitAndRun(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace content | 172 } // namespace content |
| OLD | NEW |