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

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed)

Created:
6 years, 3 months ago by dmichael (off chromium)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, jam, raymes+watch_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PPAPI: Make PPP_MessageHandler work in PNaCl The PNaCl ABI does not work in general with passing structs by-value. Rather than add more complication to the shim, this changes HandleBlockingMessage's parameter to a const-pointer param, and the return to an out-param by pointer. Note I wanted to pass PP_Var by const-pointer, while its "default" is by value. So I added a new "constptr_in" param style. (Maybe I should invert that and add a byvalue instead?) Verified backwards compat with manual testing. BUG=384539 R=asvitkine@chromium.org, binji@chromium.org, teravest@chromium.org Committed: https://crrev.com/970fa0cfd701760b7dda55de4233d614646d5c71 Cr-Commit-Position: refs/heads/master@{#295341}

Patch Set 1 #

Total comments: 1

Patch Set 2 : add backwards compatibility #

Patch Set 3 : Add missing file, add for sdk #

Patch Set 4 : alphabetical order in library.dsc #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -105 lines) Patch
M chrome/browser/component_updater/ppapi_utils.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_browsertest.cc View 2 chunks +1 line, -13 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 1 chunk +11 lines, -1 line 0 comments Download
M mojo/examples/pepper_container_app/plugin_instance.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M mojo/examples/pepper_container_app/plugin_instance.cc View 1 1 chunk +11 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/ppapi/library.dsc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/api/ppb_messaging.idl View 1 3 chunks +3 lines, -5 lines 0 comments Download
M ppapi/api/ppp_message_handler.idl View 3 chunks +9 lines, -7 lines 0 comments Download
A ppapi/c/dev/ppb_messaging_deprecated.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M ppapi/c/ppb_messaging.h View 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/c/ppp_message_handler.h View 4 chunks +10 lines, -8 lines 0 comments Download
M ppapi/generators/idl_c_proto.py View 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 7 chunks +19 lines, -19 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/message_handler.h View 1 3 chunks +19 lines, -3 lines 0 comments Download
M ppapi/proxy/message_handler.cc View 1 7 chunks +114 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 chunks +20 lines, -1 line 0 comments Download
M ppapi/tests/test_message_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_message_handler.cc View 1 9 chunks +23 lines, -22 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev_channel.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 3 chunks +8 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_messaging_thunk.cc View 1 4 chunks +36 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
dmichael (off chromium)
teravest: Primary mseaborn: In case you want to look at the PNaCl-relevant bits (it's just ...
6 years, 3 months ago (2014-09-10 23:08:46 UTC) #2
teravest
lgtm This seems pretty straightforward to me. Are the current users aware that version 0.1 ...
6 years, 3 months ago (2014-09-11 15:42:41 UTC) #3
dmichael (off chromium)
Sorry to do this to you, but this is much bigger now with backwards-compatibility
6 years, 3 months ago (2014-09-16 21:20:16 UTC) #5
teravest
On 2014/09/16 21:20:16, dmichael wrote: > Sorry to do this to you, but this is ...
6 years, 3 months ago (2014-09-17 14:59:29 UTC) #6
dmichael (off chromium)
+asvitkine for histograms, binji for nacl_sdk
6 years, 3 months ago (2014-09-17 15:15:23 UTC) #8
Alexei Svitkine (slow)
lgtm
6 years, 3 months ago (2014-09-17 15:20:46 UTC) #9
binji
native_client_sdk lgtm
6 years, 3 months ago (2014-09-17 16:44:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/564573002/100001
6 years, 3 months ago (2014-09-17 17:27:43 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/11637)
6 years, 3 months ago (2014-09-17 17:40:38 UTC) #14
dmichael (off chromium)
Committed patchset #5 (id:100001) manually as 970fa0c (presubmit successful).
6 years, 3 months ago (2014-09-17 20:58:53 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 20:58:53 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/970fa0cfd701760b7dda55de4233d614646d5c71
Cr-Commit-Position: refs/heads/master@{#295341}

Powered by Google App Engine
This is Rietveld 408576698