OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/glue/plugins/pepper_file_system.h" |
| 6 |
| 7 #include "third_party/ppapi/c/pp_completion_callback.h" |
| 8 #include "third_party/ppapi/c/pp_errors.h" |
| 9 #include "third_party/ppapi/c/ppb_file_system.h" |
| 10 |
| 11 namespace pepper { |
| 12 |
| 13 namespace { |
| 14 |
| 15 int32_t MakeDirectory(PP_Resource directory_ref, |
| 16 bool make_ancestors, |
| 17 PP_CompletionCallback callback) { |
| 18 return PP_Error_Failed; // TODO(darin): Implement me! |
| 19 } |
| 20 |
| 21 int32_t Query(PP_Resource file_ref, |
| 22 PP_FileInfo* info, |
| 23 PP_CompletionCallback callback) { |
| 24 return PP_Error_Failed; // TODO(darin): Implement me! |
| 25 } |
| 26 |
| 27 int32_t Touch(PP_Resource file_ref, |
| 28 PP_Time last_access_time, |
| 29 PP_Time last_modified_time, |
| 30 PP_CompletionCallback callback) { |
| 31 return PP_Error_Failed; // TODO(darin): Implement me! |
| 32 } |
| 33 |
| 34 int32_t Delete(PP_Resource file_ref, |
| 35 PP_CompletionCallback callback) { |
| 36 return PP_Error_Failed; // TODO(darin): Implement me! |
| 37 } |
| 38 |
| 39 int32_t Rename(PP_Resource file_ref, |
| 40 PP_Resource new_file_ref, |
| 41 PP_CompletionCallback callback) { |
| 42 return PP_Error_Failed; // TODO(darin): Implement me! |
| 43 } |
| 44 |
| 45 const PPB_FileSystem ppb_filesystem = { |
| 46 &MakeDirectory, |
| 47 &Query, |
| 48 &Touch, |
| 49 &Delete, |
| 50 &Rename |
| 51 }; |
| 52 |
| 53 } // namespace |
| 54 |
| 55 const PPB_FileSystem* FileSystem::GetInterface() { |
| 56 return &ppb_filesystem; |
| 57 } |
| 58 |
| 59 } // namespace pepper |
OLD | NEW |