| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/threading/thread_local.h" | 13 #include "base/threading/thread_local.h" |
| 14 #include "content/child/blink_glue.h" | |
| 15 #include "content/child/child_thread.h" | 14 #include "content/child/child_thread.h" |
| 15 #include "content/child/file_info_util.h" |
| 16 #include "content/child/fileapi/file_system_dispatcher.h" | 16 #include "content/child/fileapi/file_system_dispatcher.h" |
| 17 #include "content/child/fileapi/webfilewriter_impl.h" | 17 #include "content/child/fileapi/webfilewriter_impl.h" |
| 18 #include "content/child/worker_task_runner.h" | 18 #include "content/child/worker_task_runner.h" |
| 19 #include "content/common/fileapi/file_system_messages.h" | 19 #include "content/common/fileapi/file_system_messages.h" |
| 20 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 20 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 21 #include "third_party/WebKit/public/platform/WebFileSystemCallbacks.h" | 21 #include "third_party/WebKit/public/platform/WebFileSystemCallbacks.h" |
| 22 #include "third_party/WebKit/public/platform/WebString.h" | 22 #include "third_party/WebKit/public/platform/WebString.h" |
| 23 #include "third_party/WebKit/public/platform/WebURL.h" | 23 #include "third_party/WebKit/public/platform/WebURL.h" |
| 24 #include "third_party/WebKit/public/web/WebHeap.h" | 24 #include "third_party/WebKit/public/web/WebHeap.h" |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 WaitableCallbackResults* WebFileSystemImpl::MaybeCreateWaitableResults( | 685 WaitableCallbackResults* WebFileSystemImpl::MaybeCreateWaitableResults( |
| 686 const WebFileSystemCallbacks& callbacks, int callbacks_id) { | 686 const WebFileSystemCallbacks& callbacks, int callbacks_id) { |
| 687 if (!callbacks.shouldBlockUntilCompletion()) | 687 if (!callbacks.shouldBlockUntilCompletion()) |
| 688 return NULL; | 688 return NULL; |
| 689 WaitableCallbackResults* results = new WaitableCallbackResults(); | 689 WaitableCallbackResults* results = new WaitableCallbackResults(); |
| 690 waitable_results_[callbacks_id] = results; | 690 waitable_results_[callbacks_id] = results; |
| 691 return results; | 691 return results; |
| 692 } | 692 } |
| 693 | 693 |
| 694 } // namespace content | 694 } // namespace content |
| OLD | NEW |