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" | |
9 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
10 #include "content/child/child_thread.h" | 9 #include "content/child/child_thread.h" |
11 #include "content/child/fileapi/file_system_dispatcher.h" | 10 #include "content/child/fileapi/file_system_dispatcher.h" |
12 #include "content/child/worker_task_runner.h" | 11 #include "content/child/worker_task_runner.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
18 FileSystemDispatcher* GetFileSystemDispatcher() { | 17 FileSystemDispatcher* GetFileSystemDispatcher() { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 DCHECK(!bridge_->waitable_event()); | 154 DCHECK(!bridge_->waitable_event()); |
156 closure.Run(); | 155 closure.Run(); |
157 return; | 156 return; |
158 } | 157 } |
159 main_thread_loop_->PostTask(FROM_HERE, closure); | 158 main_thread_loop_->PostTask(FROM_HERE, closure); |
160 if (bridge_->waitable_event()) | 159 if (bridge_->waitable_event()) |
161 bridge_->WaitAndRun(); | 160 bridge_->WaitAndRun(); |
162 } | 161 } |
163 | 162 |
164 } // namespace content | 163 } // namespace content |
OLD | NEW |