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