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/browser/renderer_host/pepper/pepper_file_io_host.h" | 5 #include "content/browser/renderer_host/pepper/pepper_file_io_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_util_proxy.h" | 10 #include "base/files/file_util_proxy.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/storage_partition.h" | 21 #include "content/public/browser/storage_partition.h" |
22 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
23 #include "ppapi/c/pp_errors.h" | 23 #include "ppapi/c/pp_errors.h" |
24 #include "ppapi/c/ppb_file_io.h" | 24 #include "ppapi/c/ppb_file_io.h" |
25 #include "ppapi/host/dispatch_host_message.h" | 25 #include "ppapi/host/dispatch_host_message.h" |
26 #include "ppapi/host/ppapi_host.h" | 26 #include "ppapi/host/ppapi_host.h" |
27 #include "ppapi/proxy/ppapi_messages.h" | 27 #include "ppapi/proxy/ppapi_messages.h" |
28 #include "ppapi/shared_impl/file_system_util.h" | 28 #include "ppapi/shared_impl/file_system_util.h" |
29 #include "ppapi/shared_impl/file_type_conversion.h" | 29 #include "ppapi/shared_impl/file_type_conversion.h" |
30 #include "ppapi/shared_impl/time_conversion.h" | 30 #include "ppapi/shared_impl/time_conversion.h" |
| 31 #include "storage/browser/fileapi/file_observers.h" |
| 32 #include "storage/browser/fileapi/file_system_context.h" |
| 33 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 34 #include "storage/browser/fileapi/task_runner_bound_observer_list.h" |
31 #include "storage/common/fileapi/file_system_util.h" | 35 #include "storage/common/fileapi/file_system_util.h" |
32 #include "webkit/browser/fileapi/file_observers.h" | |
33 #include "webkit/browser/fileapi/file_system_context.h" | |
34 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
35 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" | |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 using ppapi::FileIOStateManager; | 39 using ppapi::FileIOStateManager; |
40 using ppapi::PPTimeToTime; | 40 using ppapi::PPTimeToTime; |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 PepperFileIOHost::UIThreadStuff GetUIThreadStuffForInternalFileSystems( | 44 PepperFileIOHost::UIThreadStuff GetUIThreadStuffForInternalFileSystems( |
45 int render_process_id) { | 45 int render_process_id) { |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 489 |
490 ppapi::proxy::SerializedHandle file_handle; | 490 ppapi::proxy::SerializedHandle file_handle; |
491 // A non-zero resource id signals NaClIPCAdapter to create a NaClQuotaDesc. | 491 // A non-zero resource id signals NaClIPCAdapter to create a NaClQuotaDesc. |
492 PP_Resource quota_file_io = check_quota_ ? pp_resource() : 0; | 492 PP_Resource quota_file_io = check_quota_ ? pp_resource() : 0; |
493 file_handle.set_file_handle(transit_file, open_flags, quota_file_io); | 493 file_handle.set_file_handle(transit_file, open_flags, quota_file_io); |
494 reply_context->params.AppendHandle(file_handle); | 494 reply_context->params.AppendHandle(file_handle); |
495 return true; | 495 return true; |
496 } | 496 } |
497 | 497 |
498 } // namespace content | 498 } // namespace content |
OLD | NEW |