| Index: webkit/plugins/ppapi/ppb_directory_reader_impl.h
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_directory_reader_impl.h (revision 87260)
|
| +++ webkit/plugins/ppapi/ppb_directory_reader_impl.h (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include <queue>
|
|
|
| #include "base/file_util_proxy.h"
|
| +#include "ppapi/thunk/ppb_directory_reader_api.h"
|
| #include "webkit/plugins/ppapi/resource.h"
|
|
|
| struct PP_CompletionCallback;
|
| @@ -19,22 +20,26 @@
|
|
|
| class PPB_FileRef_Impl;
|
|
|
| -class PPB_DirectoryReader_Impl : public Resource {
|
| +class PPB_DirectoryReader_Impl
|
| + : public Resource,
|
| + public ::ppapi::thunk::PPB_DirectoryReader_API {
|
| public:
|
| explicit PPB_DirectoryReader_Impl(PPB_FileRef_Impl* directory_ref);
|
| virtual ~PPB_DirectoryReader_Impl();
|
|
|
| - // Returns a pointer to the interface implementing PPB_DirectoryReader that
|
| - // is exposed to the plugin.
|
| - static const PPB_DirectoryReader_Dev* GetInterface();
|
| + static PP_Resource Create(PP_Resource directory_ref);
|
|
|
| // Resource overrides.
|
| - virtual PPB_DirectoryReader_Impl* AsPPB_DirectoryReader_Impl();
|
| + virtual PPB_DirectoryReader_Impl* AsPPB_DirectoryReader_Impl() OVERRIDE;
|
|
|
| - // PPB_DirectoryReader implementation.
|
| - int32_t GetNextEntry(PP_DirectoryEntry_Dev* entry,
|
| - PP_CompletionCallback callback);
|
| + // ResourceObjectBase overrides.
|
| + virtual ::ppapi::thunk::PPB_DirectoryReader_API* AsPPB_DirectoryReader_API()
|
| + OVERRIDE;
|
|
|
| + // PPB_DirectoryReader_API implementation.
|
| + virtual int32_t GetNextEntry(PP_DirectoryEntry_Dev* entry,
|
| + PP_CompletionCallback callback) OVERRIDE;
|
| +
|
| void AddNewEntries(const std::vector<base::FileUtilProxy::Entry>& entries,
|
| bool has_more);
|
|
|
|
|