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

Unified Diff: ppapi/proxy/raw_var_data.cc

Issue 18599005: [PPAPI] Added PP_VARTYPE_RESOURCE as a PP_VarType enum value. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix tests; slightly better behaviour if user passes a resource to a message. Created 7 years, 3 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/raw_var_data.cc
diff --git a/ppapi/proxy/raw_var_data.cc b/ppapi/proxy/raw_var_data.cc
index a550c3fca052892976c32288a6b807fa4cff211f..409345d0b9521bf0cd0d18d341dcc265731aea54 100644
--- a/ppapi/proxy/raw_var_data.cc
+++ b/ppapi/proxy/raw_var_data.cc
@@ -240,6 +240,13 @@ RawVarData* RawVarData::Create(PP_VarType type) {
return new ArrayRawVarData();
case PP_VARTYPE_DICTIONARY:
return new DictionaryRawVarData();
+ case PP_VARTYPE_RESOURCE:
+ // TODO(mgiuca): Add ResourceRawVarData.
+ // This path will be reached if a NaCl module attempts to pass a
+ // PP_VARTYPE_RESOURCE in a message.
+ NOTIMPLEMENTED();
+ CHECK(false) << "Serializing PP_VARTYPE_RESOURCE is not supported.";
Matt Giuca 2013/09/03 08:32:22 I agonized about whether to check-fail here or hav
dmichael (off chromium) 2013/09/03 16:25:17 The strategy I think we were going to use for othe
yzshen1 2013/09/03 20:19:53 WRT our discussion, I personally prefer not to giv
dmichael (off chromium) 2013/09/03 20:39:41 I agree; I think we're suggesting the same thing :
Matt Giuca 2013/09/10 01:17:13 So this is a lot more temporary than I let on. I h
+ return NULL;
}
NOTREACHED();
return NULL;
« ppapi/api/pp_var.idl ('K') | « ppapi/c/pp_var.h ('k') | ppapi/shared_impl/resource_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698