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

Unified Diff: ppapi/proxy/ppb_instance_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_instance_proxy.h
diff --git a/ppapi/proxy/ppb_instance_proxy.h b/ppapi/proxy/ppb_instance_proxy.h
index b22b6d1d21f360f0f488fe22c368a00ba2424797..f8f6e83fc0773ec222b0049b0c8b5fa7ce009928 100644
--- a/ppapi/proxy/ppb_instance_proxy.h
+++ b/ppapi/proxy/ppb_instance_proxy.h
@@ -8,7 +8,9 @@
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_var.h"
+#include "ppapi/cpp/completion_callback.h"
#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
#include "ppapi/shared_impl/function_group_base.h"
#include "ppapi/shared_impl/host_resource.h"
#include "ppapi/shared_impl/instance_impl.h"
@@ -99,7 +101,7 @@ class PPB_Instance_Proxy : public InterfaceProxy,
static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_INSTANCE;
private:
- // Message handlers.
+ // Plugin -> Host message handlers.
void OnMsgGetWindowObject(PP_Instance instance,
SerializedVarReturnValue result);
void OnMsgGetOwnerElementObject(PP_Instance instance,
@@ -140,8 +142,7 @@ class PPB_Instance_Proxy : public InterfaceProxy,
uint32_t event_classes);
void OnMsgPostMessage(PP_Instance instance,
SerializedVarReceiveInput message);
- void OnMsgLockMouse(PP_Instance instance,
- uint32_t serialized_callback);
+ void OnMsgLockMouse(PP_Instance instance);
void OnMsgUnlockMouse(PP_Instance instance);
void OnMsgResolveRelativeToDocument(PP_Instance instance,
SerializedVarReceiveInput relative,
@@ -156,6 +157,14 @@ class PPB_Instance_Proxy : public InterfaceProxy,
SerializedVarReturnValue result);
void OnMsgGetPluginInstanceURL(PP_Instance instance,
SerializedVarReturnValue result);
+
+ // Host -> Plugin message handlers.
+ void OnMsgMouseLockComplete(PP_Instance instance, int32_t result);
+
+ void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
+
+ pp::CompletionCallbackFactory<PPB_Instance_Proxy,
+ ProxyNonThreadSafeRefCount> callback_factory_;
};
} // namespace proxy

Powered by Google App Engine
This is Rietveld 408576698