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_directory_reader.h" | 5 #include "webkit/glue/plugins/pepper_directory_reader.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "third_party/ppapi/c/dev/ppb_directory_reader_dev.h" | 9 #include "ppapi/c/dev/ppb_directory_reader_dev.h" |
10 #include "third_party/ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
11 #include "webkit/glue/plugins/pepper_file_ref.h" | 11 #include "webkit/glue/plugins/pepper_file_ref.h" |
12 #include "webkit/glue/plugins/pepper_resource_tracker.h" | 12 #include "webkit/glue/plugins/pepper_resource_tracker.h" |
13 | 13 |
14 namespace pepper { | 14 namespace pepper { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 PP_Resource Create(PP_Resource directory_ref_id) { | 18 PP_Resource Create(PP_Resource directory_ref_id) { |
19 scoped_refptr<FileRef> directory_ref( | 19 scoped_refptr<FileRef> directory_ref( |
20 Resource::GetAs<FileRef>(directory_ref_id)); | 20 Resource::GetAs<FileRef>(directory_ref_id)); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return &ppb_directoryreader; | 60 return &ppb_directoryreader; |
61 } | 61 } |
62 | 62 |
63 int32_t DirectoryReader::GetNextEntry(PP_DirectoryEntry_Dev* entry, | 63 int32_t DirectoryReader::GetNextEntry(PP_DirectoryEntry_Dev* entry, |
64 PP_CompletionCallback callback) { | 64 PP_CompletionCallback callback) { |
65 NOTIMPLEMENTED(); // TODO(darin): Implement me! | 65 NOTIMPLEMENTED(); // TODO(darin): Implement me! |
66 return PP_ERROR_FAILED; | 66 return PP_ERROR_FAILED; |
67 } | 67 } |
68 | 68 |
69 } // namespace pepper | 69 } // namespace pepper |
OLD | NEW |