diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-08 20:22:02 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-08 20:22:02 +0000 |
commit | 0925622c1495325dfe3d3b25273f4439361936bc (patch) | |
tree | d84e13ff0c89660b3c0353095a59e296f3582ccb /ppapi/proxy/ppb_var_deprecated_proxy.h | |
parent | 67b85487bf8e376297a8cc0cbf5fa3f0fa1d078b (diff) | |
download | chromium_src-0925622c1495325dfe3d3b25273f4439361936bc.zip chromium_src-0925622c1495325dfe3d3b25273f4439361936bc.tar.gz chromium_src-0925622c1495325dfe3d3b25273f4439361936bc.tar.bz2 |
Proxy PPB_Var, fix o-o-p string var id tracking.
Note this doesn't need to use IPC at all, so it's a little strange.
Made test for pp::Var/PPB_Var that does only strings (copied from test_var_deprecated.cc). Fixed string var tracking so test can pass out-of-process (aside from invalid UTF8 checking, which is still not implemented o-o-p).
BUG=85236
TEST=test_var.cc, run tests manually out-of-process.
Review URL: http://codereview.chromium.org/6995083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_var_deprecated_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_var_deprecated_proxy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.h b/ppapi/proxy/ppb_var_deprecated_proxy.h index 17e3a53..1e6a70c 100644 --- a/ppapi/proxy/ppb_var_deprecated_proxy.h +++ b/ppapi/proxy/ppb_var_deprecated_proxy.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef PPAPI_PPB_VAR_PROXY_H_ -#define PPAPI_PPB_VAR_PROXY_H_ +#ifndef PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ +#define PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ #include <vector> @@ -33,7 +33,7 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy { static const Info* GetInfo(); const PPB_Var_Deprecated* ppb_var_target() const { - return reinterpret_cast<const PPB_Var_Deprecated*>(target_interface()); + return static_cast<const PPB_Var_Deprecated*>(target_interface()); } // InterfaceProxy implementation. @@ -101,4 +101,4 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy { } // namespace proxy } // namespace pp -#endif // PPAPI_PPB_VAR_PROXY_H_ +#endif // PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ |