| 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/ppb_flash_file_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ppapi/c/pp_file_info.h" | 11 #include "ppapi/c/pp_file_info.h" |
| 12 #include "ppapi/c/ppb_file_io.h" | 12 #include "ppapi/c/ppb_file_io.h" |
| 13 #include "ppapi/c/private/ppb_flash_file.h" | 13 #include "ppapi/c/private/ppb_flash_file.h" |
| 14 #include "ppapi/shared_impl/time_conversion.h" |
| 14 #include "ppapi/thunk/enter.h" | 15 #include "ppapi/thunk/enter.h" |
| 15 #include "webkit/plugins/ppapi/common.h" | 16 #include "webkit/plugins/ppapi/common.h" |
| 16 #include "webkit/plugins/ppapi/file_path.h" | 17 #include "webkit/plugins/ppapi/file_path.h" |
| 17 #include "webkit/plugins/ppapi/file_type_conversions.h" | 18 #include "webkit/plugins/ppapi/file_type_conversions.h" |
| 18 #include "webkit/plugins/ppapi/plugin_delegate.h" | 19 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 19 #include "webkit/plugins/ppapi/plugin_module.h" | 20 #include "webkit/plugins/ppapi/plugin_module.h" |
| 20 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 21 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 21 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 22 #include "webkit/plugins/ppapi/resource_tracker.h" | 23 #include "webkit/plugins/ppapi/resource_tracker.h" |
| 23 #include "webkit/plugins/ppapi/time_conversion.h" | |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 using ppapi::thunk::EnterResource; | 29 using ppapi::thunk::EnterResource; |
| 30 using ppapi::thunk::PPB_FileRef_API; | 30 using ppapi::thunk::PPB_FileRef_API; |
| 31 using ppapi::TimeToPPTime; |
| 31 | 32 |
| 32 namespace webkit { | 33 namespace webkit { |
| 33 namespace ppapi { | 34 namespace ppapi { |
| 34 | 35 |
| 35 namespace { | 36 namespace { |
| 36 | 37 |
| 37 void FreeDirContents(PP_Instance instance, PP_DirContents_Dev* contents) { | 38 void FreeDirContents(PP_Instance instance, PP_DirContents_Dev* contents) { |
| 38 DCHECK(contents); | 39 DCHECK(contents); |
| 39 for (int32_t i = 0; i < contents->count; ++i) { | 40 for (int32_t i = 0; i < contents->count; ++i) { |
| 40 delete [] contents->entries[i].name; | 41 delete [] contents->entries[i].name; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 274 |
| 274 } // namespace | 275 } // namespace |
| 275 | 276 |
| 276 // static | 277 // static |
| 277 const PPB_Flash_File_FileRef* PPB_Flash_File_FileRef_Impl::GetInterface() { | 278 const PPB_Flash_File_FileRef* PPB_Flash_File_FileRef_Impl::GetInterface() { |
| 278 return &ppb_flash_file_fileref; | 279 return &ppb_flash_file_fileref; |
| 279 } | 280 } |
| 280 | 281 |
| 281 } // namespace ppapi | 282 } // namespace ppapi |
| 282 } // namespace webkit | 283 } // namespace webkit |
| OLD | NEW |