OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/pepper/pepper_file_io_host.h" | 5 #include "content/renderer/pepper/pepper_file_io_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/file_util_proxy.h" | 9 #include "base/files/file_util_proxy.h" |
10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/host/dispatch_host_message.h" | 11 #include "ppapi/host/dispatch_host_message.h" |
12 #include "ppapi/host/ppapi_host.h" | 12 #include "ppapi/host/ppapi_host.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 13 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/shared_impl/file_type_conversion.h" | 14 #include "ppapi/shared_impl/file_type_conversion.h" |
15 #include "ppapi/shared_impl/time_conversion.h" | 15 #include "ppapi/shared_impl/time_conversion.h" |
16 #include "ppapi/thunk/enter.h" | 16 #include "ppapi/thunk/enter.h" |
17 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 17 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
18 #include "webkit/plugins/ppapi/file_callbacks.h" | 18 #include "webkit/plugins/ppapi/file_callbacks.h" |
19 #include "webkit/plugins/ppapi/host_globals.h" | 19 #include "webkit/plugins/ppapi/host_globals.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 // depends on whether is negative or not. It is the result here. We translate | 557 // depends on whether is negative or not. It is the result here. We translate |
558 // for the callback. | 558 // for the callback. |
559 int32_t pp_error = ::ppapi::PlatformFileErrorToPepperError(error_code); | 559 int32_t pp_error = ::ppapi::PlatformFileErrorToPepperError(error_code); |
560 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); | 560 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); |
561 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); | 561 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); |
562 state_manager_.SetOperationFinished(); | 562 state_manager_.SetOperationFinished(); |
563 } | 563 } |
564 | 564 |
565 } // namespace content | 565 } // namespace content |
566 | 566 |
OLD | NEW |