| Index: webkit/plugins/ppapi/file_callbacks.h
|
| diff --git a/webkit/plugins/ppapi/file_callbacks.h b/webkit/plugins/ppapi/file_callbacks.h
|
| index c45932ab885a44532ab692201798f4b27544bbac..2df1c24ddd87bf3ace4b11aaf699ac4b7af67669 100644
|
| --- a/webkit/plugins/ppapi/file_callbacks.h
|
| +++ b/webkit/plugins/ppapi/file_callbacks.h
|
| @@ -8,10 +8,12 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/memory/linked_ptr.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/platform_file.h"
|
| #include "googleurl/src/gurl.h"
|
| +#include "ppapi/c/pp_array_output.h"
|
| #include "ppapi/c/pp_completion_callback.h"
|
| #include "ppapi/c/pp_file_info.h"
|
| #include "ppapi/c/pp_resource.h"
|
| @@ -26,21 +28,36 @@ class FilePath;
|
| namespace ppapi {
|
| class Resource;
|
| class TrackedCallback;
|
| +struct PPB_FileRef_CreateInfo;
|
| }
|
|
|
| namespace webkit {
|
| namespace ppapi {
|
|
|
| +class PPB_FileRef_Impl;
|
| +
|
| // Instances of this class are deleted by FileSystemDispatcher.
|
| class FileCallbacks : public fileapi::FileSystemCallbackDispatcher {
|
| + typedef std::vector< ::ppapi::PPB_FileRef_CreateInfo> CreateInfos;
|
| + typedef std::vector<PP_FileType> FileTypes;
|
| +
|
| public:
|
| + // Doesn't take the ownership of members.
|
| + struct ReadDirectoryEntriesParams {
|
| + PPB_FileRef_Impl* dir_ref;
|
| + linked_ptr<CreateInfos> files;
|
| + linked_ptr<FileTypes> file_types;
|
| + };
|
| +
|
| FileCallbacks(::ppapi::Resource* resource,
|
| - scoped_refptr< ::ppapi::TrackedCallback> callback,
|
| - PP_FileInfo* info);
|
| + scoped_refptr< ::ppapi::TrackedCallback> callback);
|
| FileCallbacks(::ppapi::Resource* resource,
|
| scoped_refptr< ::ppapi::TrackedCallback> callback,
|
| - PP_FileInfo* info,
|
| + linked_ptr<PP_FileInfo> info,
|
| PP_FileSystemType file_system_type);
|
| + FileCallbacks(::ppapi::Resource* resource,
|
| + scoped_refptr< ::ppapi::TrackedCallback> callback,
|
| + const ReadDirectoryEntriesParams& params);
|
| virtual ~FileCallbacks();
|
|
|
| // FileSystemCallbackDispatcher implementation.
|
| @@ -64,8 +81,11 @@ class FileCallbacks : public fileapi::FileSystemCallbackDispatcher {
|
| void RunCallback(base::PlatformFileError error_code);
|
|
|
| scoped_refptr< ::ppapi::TrackedCallback> callback_;
|
| - PP_FileInfo* info_;
|
| + linked_ptr<PP_FileInfo> info_;
|
| PP_FileSystemType file_system_type_;
|
| + PPB_FileRef_Impl* read_entries_dir_ref_;
|
| + linked_ptr<CreateInfos> read_entries_files_;
|
| + linked_ptr<FileTypes> read_entries_file_types_;
|
| };
|
|
|
| } // namespace ppapi
|
|
|