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

Issue 18599005: [PPAPI] Added PP_VARTYPE_RESOURCE as a PP_VarType enum value. (Closed)

Created:
7 years, 5 months ago by Matt Giuca
Modified:
7 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, raymes+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org, dcheng, ihf+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[PPAPI] Added PP_VARTYPE_RESOURCE as a PP_VarType enum value. This type is not yet useful. There is currently no way to generate one of these. If the plugin manually builds one and sends it in a message, it will currently check-fail, crashing the plugin. BUG=177017 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222759

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase, and split out ResourceVar part to CL 23346009. #

Patch Set 4 : Rebase, remove ResourceRawVarData part, and clean up. #

Patch Set 5 : Fix tests; slightly better behaviour if user passes a resource to a message. #

Total comments: 13

Patch Set 6 : Rebase. #

Patch Set 7 : Fix comments. #

Patch Set 8 : Fail gracefully when passing PP_VARTYPE_RESOURCE from plugin to JS. #

Patch Set 9 : Fix unittest_utils comparison of resource vars. #

Total comments: 9

Patch Set 10 : Respond to reviews. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -22 lines) Patch
M content/renderer/pepper/message_channel.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/npapi_glue.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/api/pp_var.idl View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -7 lines 0 comments Download
M ppapi/c/pp_var.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -8 lines 0 comments Download
M ppapi/proxy/raw_var_data.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource_var.cc View 1 2 3 2 chunks +11 lines, -6 lines 0 comments Download
M ppapi/shared_impl/unittest_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var_value_conversions.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Matt Giuca
Hi guys, This is the first change for the Native Client file passing that actually ...
7 years, 3 months ago (2013-09-03 08:32:22 UTC) #1
Matt Giuca
https://codereview.chromium.org/18599005/diff/43001/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): https://codereview.chromium.org/18599005/diff/43001/ppapi/api/pp_var.idl#newcode58 ppapi/api/pp_var.idl:58: * Arrays and dictionaries are not currently supported but ...
7 years, 3 months ago (2013-09-03 08:36:31 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/18599005/diff/43001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (right): https://codereview.chromium.org/18599005/diff/43001/content/renderer/pepper/message_channel.cc#newcode108 content/renderer/pepper/message_channel.cc:108: // Objects/Arrays/Dictionaries not supported by PostMessage in-process. Maybe update ...
7 years, 3 months ago (2013-09-03 16:25:17 UTC) #3
yzshen1
https://codereview.chromium.org/18599005/diff/43001/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): https://codereview.chromium.org/18599005/diff/43001/ppapi/api/pp_var.idl#newcode112 ppapi/api/pp_var.idl:112: * <code>PP_VARTYPE_OBJECT</code>, <code>PP_VARTYPE_ARRAY</code>, Please also add PP_VARTYPE_ARRAY_BUFFER here. https://codereview.chromium.org/18599005/diff/43001/ppapi/proxy/raw_var_data.cc ...
7 years, 3 months ago (2013-09-03 20:19:53 UTC) #4
dmichael (off chromium)
https://codereview.chromium.org/18599005/diff/43001/ppapi/proxy/raw_var_data.cc File ppapi/proxy/raw_var_data.cc (right): https://codereview.chromium.org/18599005/diff/43001/ppapi/proxy/raw_var_data.cc#newcode248 ppapi/proxy/raw_var_data.cc:248: CHECK(false) << "Serializing PP_VARTYPE_RESOURCE is not supported."; On 2013/09/03 ...
7 years, 3 months ago (2013-09-03 20:39:41 UTC) #5
yzshen1
On 2013/09/03 20:39:41, dmichael wrote: > https://codereview.chromium.org/18599005/diff/43001/ppapi/proxy/raw_var_data.cc > File ppapi/proxy/raw_var_data.cc (right): > > https://codereview.chromium.org/18599005/diff/43001/ppapi/proxy/raw_var_data.cc#newcode248 > ...
7 years, 3 months ago (2013-09-03 20:59:26 UTC) #6
Matt Giuca
https://codereview.chromium.org/18599005/diff/43001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (right): https://codereview.chromium.org/18599005/diff/43001/content/renderer/pepper/message_channel.cc#newcode108 content/renderer/pepper/message_channel.cc:108: // Objects/Arrays/Dictionaries not supported by PostMessage in-process. On 2013/09/03 ...
7 years, 3 months ago (2013-09-10 01:17:13 UTC) #7
Matt Giuca
It's getting really complicated to manage this patch. PS 9 is based on PS 7 ...
7 years, 3 months ago (2013-09-10 22:45:51 UTC) #8
dmichael (off chromium)
lgtm https://codereview.chromium.org/18599005/diff/74013/ppapi/shared_impl/unittest_utils.cc File ppapi/shared_impl/unittest_utils.cc (right): https://codereview.chromium.org/18599005/diff/74013/ppapi/shared_impl/unittest_utils.cc#newcode182 ppapi/shared_impl/unittest_utils.cc:182: expected_message.size()) != 0) { Why not just memcmp ...
7 years, 3 months ago (2013-09-11 18:30:05 UTC) #9
raymes
lgtm https://chromiumcodereview.appspot.com/18599005/diff/74013/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): https://chromiumcodereview.appspot.com/18599005/diff/74013/ppapi/api/pp_var.idl#newcode88 ppapi/api/pp_var.idl:88: * revisions. These objects are reference counted, so ...
7 years, 3 months ago (2013-09-11 22:52:28 UTC) #10
yzshen1
LGTM https://codereview.chromium.org/18599005/diff/74013/ppapi/shared_impl/var.cc File ppapi/shared_impl/var.cc (right): https://codereview.chromium.org/18599005/diff/74013/ppapi/shared_impl/var.cc#newcode74 ppapi/shared_impl/var.cc:74: } else if (resource->creation_message().type() != 0) { Or ...
7 years, 3 months ago (2013-09-11 22:57:10 UTC) #11
Matt Giuca
https://codereview.chromium.org/18599005/diff/74013/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): https://codereview.chromium.org/18599005/diff/74013/ppapi/api/pp_var.idl#newcode88 ppapi/api/pp_var.idl:88: * revisions. These objects are reference counted, so AddRef ...
7 years, 3 months ago (2013-09-12 07:08:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/18599005/100001
7 years, 3 months ago (2013-09-12 07:08:49 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 11:11:23 UTC) #14
Message was sent while issue was closed.
Change committed as 222759

Powered by Google App Engine
This is Rietveld 408576698