| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/c/pp_file_info.h" | 8 #include "ppapi/c/pp_file_info.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/ppb_file_system.h" | 10 #include "ppapi/c/ppb_file_system.h" |
| 11 #include "ppapi/shared_impl/file_type_conversion.h" |
| 11 #include "ppapi/shared_impl/time_conversion.h" | 12 #include "ppapi/shared_impl/time_conversion.h" |
| 12 #include "webkit/fileapi/file_system_types.h" | 13 #include "webkit/fileapi/file_system_types.h" |
| 13 #include "webkit/plugins/ppapi/callbacks.h" | 14 #include "webkit/plugins/ppapi/callbacks.h" |
| 14 #include "webkit/plugins/ppapi/file_type_conversions.h" | |
| 15 #include "webkit/plugins/ppapi/plugin_module.h" | 15 #include "webkit/plugins/ppapi/plugin_module.h" |
| 16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| 17 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 17 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
| 18 | 18 |
| 19 using ppapi::TimeToPPTime; | 19 using ppapi::TimeToPPTime; |
| 20 | 20 |
| 21 namespace webkit { | 21 namespace webkit { |
| 22 namespace ppapi { | 22 namespace ppapi { |
| 23 | 23 |
| 24 FileCallbacks::FileCallbacks( | 24 FileCallbacks::FileCallbacks( |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FileCallbacks::DidWrite(int64 bytes, bool complete) { | 96 void FileCallbacks::DidWrite(int64 bytes, bool complete) { |
| 97 NOTREACHED(); | 97 NOTREACHED(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void FileCallbacks::RunCallback(base::PlatformFileError error_code) { | 100 void FileCallbacks::RunCallback(base::PlatformFileError error_code) { |
| 101 if (callback_->completed()) | 101 if (callback_->completed()) |
| 102 return; | 102 return; |
| 103 | 103 |
| 104 callback_->Run(PlatformFileErrorToPepperError(error_code)); | 104 callback_->Run(::ppapi::PlatformFileErrorToPepperError(error_code)); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace ppapi | 107 } // namespace ppapi |
| 108 } // namespace webkit | 108 } // namespace webkit |
| OLD | NEW |