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

Unified Diff: ppapi/proxy/ppb_file_ref_proxy.h

Issue 8226009: Remove the proxy callback tracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 2 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 6133c1ac4acaca787245228fe21597cc2dcf5430..25848e4a4576d263a741b84049c2c1e7582ba0f8 100644
--- a/ppapi/proxy/ppb_file_ref_proxy.h
+++ b/ppapi/proxy/ppb_file_ref_proxy.h
@@ -11,7 +11,9 @@
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_time.h"
+#include "ppapi/cpp/completion_callback.h"
#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
struct PPB_FileRef_Dev;
@@ -59,23 +61,35 @@ class PPB_FileRef_Proxy : public InterfaceProxy {
private:
// Message handlers.
- void OnMsgCreate(const ppapi::HostResource& file_system,
+ void OnMsgCreate(const HostResource& file_system,
const std::string& path,
PPB_FileRef_CreateInfo* result);
- void OnMsgGetParent(const ppapi::HostResource& host_resource,
+ void OnMsgGetParent(const HostResource& host_resource,
PPB_FileRef_CreateInfo* result);
- void OnMsgMakeDirectory(const ppapi::HostResource& host_resource,
+ void OnMsgMakeDirectory(const HostResource& host_resource,
PP_Bool make_ancestors,
- uint32_t serialized_callback);
- void OnMsgTouch(const ppapi::HostResource& host_resource,
+ int callback_id);
+ void OnMsgTouch(const HostResource& host_resource,
PP_Time last_access,
PP_Time last_modified,
- uint32_t serialized_callback);
- void OnMsgDelete(const ppapi::HostResource& host_resource,
- uint32_t serialized_callback);
- void OnMsgRename(const ppapi::HostResource& file_ref,
- const ppapi::HostResource& new_file_ref,
- uint32_t serialized_callback);
+ int callback_id);
+ void OnMsgDelete(const HostResource& host_resource,
+ int callback_id);
+ void OnMsgRename(const HostResource& file_ref,
+ const HostResource& new_file_ref,
+ int callback_id);
+
+ // Host -> Plugin message handlers.
+ void OnMsgCallbackComplete(const HostResource& host_resource,
+ int callback_id,
+ int32_t result);
+
+ void OnCallbackCompleteInHost(int32_t result,
+ const HostResource& host_resource,
+ int callback_id);
+
+ pp::CompletionCallbackFactory<PPB_FileRef_Proxy,
+ ProxyNonThreadSafeRefCount> callback_factory_;
DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy);
};

Powered by Google App Engine
This is Rietveld 408576698