Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: ppapi/proxy/file_io_resource.h

Issue 13032002: Add RequestOSFileHandle as a private PPAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix test Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/file_io_resource.h
diff --git a/ppapi/proxy/file_io_resource.h b/ppapi/proxy/file_io_resource.h
index f5a1aa8025002bb97a9d03c353fe495c92438352..a2b928dcd840b81958ffab3bbb32ac3435c97b92 100644
--- a/ppapi/proxy/file_io_resource.h
+++ b/ppapi/proxy/file_io_resource.h
@@ -7,6 +7,7 @@
#include <string>
+#include "ppapi/c/private/pp_file_handle.h"
#include "ppapi/proxy/connection.h"
#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
@@ -55,6 +56,9 @@ class PPAPI_PROXY_EXPORT FileIOResource
virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) OVERRIDE;
virtual void Close() OVERRIDE;
virtual int32_t GetOSFileDescriptor() OVERRIDE;
+ virtual int32_t RequestOSFileHandle(
+ PP_FileHandle* handle,
+ scoped_refptr<TrackedCallback> callback) OVERRIDE;
virtual int32_t WillWrite(int64_t offset,
int32_t bytes_to_write,
scoped_refptr<TrackedCallback> callback) OVERRIDE;
@@ -82,6 +86,10 @@ class PPAPI_PROXY_EXPORT FileIOResource
PP_ArrayOutput array_output,
const ResourceMessageReplyParams& params,
const std::string& data);
+ void OnPluginMsgRequestOSFileHandleComplete(
+ scoped_refptr<TrackedCallback> callback,
+ PP_FileHandle* output_handle,
+ const ResourceMessageReplyParams& params);
FileIOStateManager state_manager_;
@@ -92,4 +100,3 @@ class PPAPI_PROXY_EXPORT FileIOResource
} // namespace ppapi
#endif // PPAPI_PROXY_FILE_IO_RESOURCE_H_
-

Powered by Google App Engine
This is Rietveld 408576698