| 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 "webkit/plugins/ppapi/file_callbacks.h" | 5 #include "webkit/plugins/ppapi/file_callbacks.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/pp_file_info.h" | 10 #include "ppapi/c/pp_file_info.h" |
| 10 #include "ppapi/c/pp_errors.h" | |
| 11 #include "ppapi/c/ppb_file_system.h" | 11 #include "ppapi/c/ppb_file_system.h" |
| 12 #include "ppapi/shared_impl/file_type_conversion.h" | 12 #include "ppapi/shared_impl/file_type_conversion.h" |
| 13 #include "ppapi/shared_impl/ppb_file_ref_shared.h" | 13 #include "ppapi/shared_impl/ppb_file_ref_shared.h" |
| 14 #include "ppapi/shared_impl/time_conversion.h" | 14 #include "ppapi/shared_impl/time_conversion.h" |
| 15 #include "ppapi/shared_impl/tracked_callback.h" | 15 #include "ppapi/shared_impl/tracked_callback.h" |
| 16 #include "webkit/fileapi/file_system_types.h" | 16 #include "webkit/fileapi/file_system_types.h" |
| 17 #include "webkit/fileapi/file_system_util.h" | 17 #include "webkit/fileapi/file_system_util.h" |
| 18 #include "webkit/plugins/ppapi/plugin_module.h" | 18 #include "webkit/plugins/ppapi/plugin_module.h" |
| 19 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 20 | 20 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 void FileCallbacks::RunCallback(base::PlatformFileError error_code) { | 139 void FileCallbacks::RunCallback(base::PlatformFileError error_code) { |
| 140 if (callback_->completed()) | 140 if (callback_->completed()) |
| 141 return; | 141 return; |
| 142 | 142 |
| 143 callback_->Run(::ppapi::PlatformFileErrorToPepperError(error_code)); | 143 callback_->Run(::ppapi::PlatformFileErrorToPepperError(error_code)); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace ppapi | 146 } // namespace ppapi |
| 147 } // namespace webkit | 147 } // namespace webkit |
| OLD | NEW |