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/webfilesystem_impl.h" | 5 #include "content/child/fileapi/webfilesystem_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
15 #include "base/thread_task_runner_handle.h" | |
16 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/child/child_thread_impl.h" | 17 #include "content/child/child_thread_impl.h" |
18 #include "content/child/file_info_util.h" | 18 #include "content/child/file_info_util.h" |
19 #include "content/child/fileapi/file_system_dispatcher.h" | 19 #include "content/child/fileapi/file_system_dispatcher.h" |
20 #include "content/child/fileapi/webfilewriter_impl.h" | 20 #include "content/child/fileapi/webfilewriter_impl.h" |
21 #include "content/common/fileapi/file_system_messages.h" | 21 #include "content/common/fileapi/file_system_messages.h" |
22 #include "storage/common/fileapi/directory_entry.h" | 22 #include "storage/common/fileapi/directory_entry.h" |
23 #include "storage/common/fileapi/file_system_util.h" | 23 #include "storage/common/fileapi/file_system_util.h" |
24 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 24 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
25 #include "third_party/WebKit/public/platform/WebFileSystemCallbacks.h" | 25 #include "third_party/WebKit/public/platform/WebFileSystemCallbacks.h" |
26 #include "third_party/WebKit/public/platform/WebString.h" | 26 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 WaitableCallbackResults* WebFileSystemImpl::MaybeCreateWaitableResults( | 702 WaitableCallbackResults* WebFileSystemImpl::MaybeCreateWaitableResults( |
703 const WebFileSystemCallbacks& callbacks, int callbacks_id) { | 703 const WebFileSystemCallbacks& callbacks, int callbacks_id) { |
704 if (!callbacks.shouldBlockUntilCompletion()) | 704 if (!callbacks.shouldBlockUntilCompletion()) |
705 return NULL; | 705 return NULL; |
706 WaitableCallbackResults* results = new WaitableCallbackResults(); | 706 WaitableCallbackResults* results = new WaitableCallbackResults(); |
707 waitable_results_[callbacks_id] = results; | 707 waitable_results_[callbacks_id] = results; |
708 return results; | 708 return results; |
709 } | 709 } |
710 | 710 |
711 } // namespace content | 711 } // namespace content |
OLD | NEW |