summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_var_deprecated_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 23:22:40 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 23:22:40 +0000
commit5b2d3853536a12823855589d9876089c0f3affbd (patch)
tree6c9eccff180d110bafff0a875a5f61cd0d5210ff /ppapi/proxy/ppb_var_deprecated_proxy.h
parent30307700ac157552793f3370b9dd53373015ac55 (diff)
downloadchromium_src-5b2d3853536a12823855589d9876089c0f3affbd.zip
chromium_src-5b2d3853536a12823855589d9876089c0f3affbd.tar.gz
chromium_src-5b2d3853536a12823855589d9876089c0f3affbd.tar.bz2
Make AddRefObject a sync message to avoid a race condition between (1)
returning to the browser from a sync function that passes a var, and (2) the AddRef if the plugin wants to take a reference to it while handling the sync function. TEST=none BUG=79813 Review URL: http://codereview.chromium.org/6882027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_var_deprecated_proxy.h')
-rw-r--r--ppapi/proxy/ppb_var_deprecated_proxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.h b/ppapi/proxy/ppb_var_deprecated_proxy.h
index 6e05f3e..03c6186 100644
--- a/ppapi/proxy/ppb_var_deprecated_proxy.h
+++ b/ppapi/proxy/ppb_var_deprecated_proxy.h
@@ -40,6 +40,8 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy {
private:
// Message handlers.
+ void OnMsgAddRefObject(int64 object_id, int* unused);
+ void OnMsgReleaseObject(int64 object_id);
void OnMsgHasProperty(SerializedVarReceiveInput var,
SerializedVarReceiveInput name,
SerializedVarOutParam exception,