| Index: ppapi/proxy/file_io_resource.h
|
| diff --git a/ppapi/proxy/file_io_resource.h b/ppapi/proxy/file_io_resource.h
|
| index a2b928dcd840b81958ffab3bbb32ac3435c97b92..437bff24bf658cfa6c683e10fa7323ef758055b4 100644
|
| --- a/ppapi/proxy/file_io_resource.h
|
| +++ b/ppapi/proxy/file_io_resource.h
|
| @@ -66,31 +66,36 @@ class PPAPI_PROXY_EXPORT FileIOResource
|
| int64_t length,
|
| scoped_refptr<TrackedCallback> callback) OVERRIDE;
|
|
|
| + // FileUtilProxy callbacks. These must be public so we can invoke them
|
| + // from outside the class.
|
| + void OnQueryComplete(scoped_refptr<TrackedCallback> callback,
|
| + PP_FileInfo* output_info,
|
| + base::PlatformFileError error_code,
|
| + const base::PlatformFileInfo& file_info);
|
| + void OnReadComplete(scoped_refptr<TrackedCallback> callback,
|
| + PP_ArrayOutput array_output,
|
| + base::PlatformFileError error_code,
|
| + const char* data, int bytes_read);
|
| +
|
| private:
|
| int32_t ReadValidated(int64_t offset,
|
| int32_t bytes_to_read,
|
| const PP_ArrayOutput& array_output,
|
| scoped_refptr<TrackedCallback> callback);
|
| + void CloseFileHandle();
|
|
|
| - // Handlers of reply messages. Note that all of them have a callback
|
| - // parameters bound when call to the host.
|
| + // Reply message handlers.
|
| void OnPluginMsgGeneralComplete(scoped_refptr<TrackedCallback> callback,
|
| const ResourceMessageReplyParams& params);
|
| void OnPluginMsgOpenFileComplete(scoped_refptr<TrackedCallback> callback,
|
| const ResourceMessageReplyParams& params);
|
| - void OnPluginMsgQueryComplete(scoped_refptr<TrackedCallback> callback,
|
| - PP_FileInfo* output_info_,
|
| - const ResourceMessageReplyParams& params,
|
| - const PP_FileInfo& info);
|
| - void OnPluginMsgReadComplete(scoped_refptr<TrackedCallback> callback,
|
| - PP_ArrayOutput array_output,
|
| - const ResourceMessageReplyParams& params,
|
| - const std::string& data);
|
| void OnPluginMsgRequestOSFileHandleComplete(
|
| scoped_refptr<TrackedCallback> callback,
|
| PP_FileHandle* output_handle,
|
| const ResourceMessageReplyParams& params);
|
|
|
| + PP_FileHandle file_handle_;
|
| + PP_FileSystemType file_system_type_;
|
| FileIOStateManager state_manager_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FileIOResource);
|
|
|