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

Unified Diff: ppapi/proxy/ppb_file_ref_proxy.h

Issue 12817009: Add Query() support to FileRef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix memory leak 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/ppb_file_ref_proxy.h
diff --git a/ppapi/proxy/ppb_file_ref_proxy.h b/ppapi/proxy/ppb_file_ref_proxy.h
index e4a412e9674f24dbd1a017c65e8838dfb9594133..ac4b31bd0ecf222f53ad45e0aeb95fa02d390070 100644
--- a/ppapi/proxy/ppb_file_ref_proxy.h
+++ b/ppapi/proxy/ppb_file_ref_proxy.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "ppapi/c/pp_file_info.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_time.h"
@@ -79,6 +80,8 @@ class PPAPI_PROXY_EXPORT PPB_FileRef_Proxy
void OnMsgRename(const HostResource& file_ref,
const HostResource& new_file_ref,
int callback_id);
+ void OnMsgQuery(const HostResource& file_ref,
+ int callback_id);
void OnMsgGetAbsolutePath(const HostResource& host_resource,
SerializedVarReturnValue result);
@@ -86,10 +89,18 @@ class PPAPI_PROXY_EXPORT PPB_FileRef_Proxy
void OnMsgCallbackComplete(const HostResource& host_resource,
int callback_id,
int32_t result);
+ void OnMsgQueryCallbackComplete(const HostResource& host_resource,
+ const PP_FileInfo& info,
+ int callback_id,
+ int32_t result);
void OnCallbackCompleteInHost(int32_t result,
const HostResource& host_resource,
int callback_id);
+ void OnQueryCallbackCompleteInHost(int32_t result,
+ const HostResource& host_resource,
+ PP_FileInfo* info,
+ int callback_id);
ProxyCompletionCallbackFactory<PPB_FileRef_Proxy> callback_factory_;

Powered by Google App Engine
This is Rietveld 408576698