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.h" | 8 #include "base/callback.h" |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // On the plugin side, the callback expects a parameter with different meaning | 484 // On the plugin side, the callback expects a parameter with different meaning |
485 // depends on whether is negative or not. It is the result here. We translate | 485 // depends on whether is negative or not. It is the result here. We translate |
486 // for the callback. | 486 // for the callback. |
487 int32_t pp_error = ppapi::PlatformFileErrorToPepperError(error_code); | 487 int32_t pp_error = ppapi::PlatformFileErrorToPepperError(error_code); |
488 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); | 488 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); |
489 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); | 489 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); |
490 state_manager_.SetOperationFinished(); | 490 state_manager_.SetOperationFinished(); |
491 } | 491 } |
492 | 492 |
493 } // namespace content | 493 } // namespace content |
OLD | NEW |