summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 04:27:47 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 04:27:47 +0000
commit9b6db26fcc22a7a4ec0510a93733b2e190d9e649 (patch)
treefff3f2610cab083b3093ab1052cad6202335ff59 /ppapi/proxy
parentb648e91bd6c911ed26d6c65048c4a597040359ed (diff)
downloadchromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.zip
chromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.tar.gz
chromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.tar.bz2
Create a VarPrivate interface to contain the scripting helper functions of Var.
Currently, the old functions are left in Var. When people have a chance to move to this new API, we can delete them from Var. This also adds new enums for ARRAY and DICTIONARY vars, and makes the var C++ wrapper forward-compatible with them by refcounting any enums that it doesn't know about. Review URL: http://codereview.chromium.org/6823016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r--ppapi/proxy/serialized_var.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc
index 12df2cc..286f244 100644
--- a/ppapi/proxy/serialized_var.cc
+++ b/ppapi/proxy/serialized_var.cc
@@ -147,6 +147,11 @@ void SerializedVar::Inner::WriteToMessage(IPC::Message* m) const {
case PP_VARTYPE_OBJECT:
m->WriteInt64(var_.value.as_id);
break;
+ case PP_VARTYPE_ARRAY:
+ case PP_VARTYPE_DICTIONARY:
+ // TODO(brettw) when these are supported, implement this.
+ NOTIMPLEMENTED();
+ break;
}
}
@@ -196,6 +201,11 @@ bool SerializedVar::Inner::ReadFromMessage(const IPC::Message* m, void** iter) {
case PP_VARTYPE_OBJECT:
success = m->ReadInt64(iter, &var_.value.as_id);
break;
+ case PP_VARTYPE_ARRAY:
+ case PP_VARTYPE_DICTIONARY:
+ // TODO(brettw) when these types are supported, implement this.
+ NOTIMPLEMENTED();
+ break;
default:
// Leave success as false.
break;