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

Issue 290553004: PPAPI: Refactor MessageChannel to prep for sync postMessae (Closed)

Created:
6 years, 7 months ago by dmichael (off chromium)
Modified:
6 years, 7 months ago
Reviewers:
raymes, jam, teravest
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

PPAPI: Refactor MessageChannel to prep for sync postMessage 1) Remove unused CopyPPVar function from MessageChannel 2) Remove mostly-duplicate NPVariantToPPVar from MessageChannel. 3) Separate V8VarConverter::FromV8Value implementation from calling the callback (so I can have a sync path later, and this is shorter anyway). 4) Simplify NaCl in-process to out-of-process transition. Now, we just queue stuff for in-process (nobody but NaCl uses Messaging in-process), and if/when we switch to out-of-process (handing off to a NaCl app) we drain the queues then. 5) Some other renames/tweaks to how MessageChannel queues pending conversions. BUG=367896 R=raymes@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272583

Patch Set 1 #

Patch Set 2 : queue plugin messgaes #

Patch Set 3 : more cleanup #

Patch Set 4 : a little more cleanup #

Total comments: 12

Patch Set 5 : review fixes #

Patch Set 6 : Fix in-process. Make Chrome tell content when a plugin is a host for external plugins (i.e., NaCl) #

Total comments: 6

Patch Set 7 : Move NaCl hook to components/nacl/renderer #

Total comments: 2

Patch Set 8 : move NaClHelper in to nacl namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -272 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A components/nacl/renderer/nacl_helper.h View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
A components/nacl/renderer/nacl_helper.cc View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
M content/public/renderer/renderer_ppapi_host.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/pepper/message_channel.h View 1 2 4 chunks +23 lines, -28 lines 0 comments Download
M content/renderer/pepper/message_channel.cc View 1 2 3 4 5 12 chunks +88 lines, -188 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 7 chunks +14 lines, -9 lines 0 comments Download
M content/renderer/pepper/renderer_ppapi_host_impl.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/renderer_ppapi_host_impl.cc View 1 2 3 4 5 4 chunks +16 lines, -2 lines 0 comments Download
M content/renderer/pepper/resource_converter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/resource_converter.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/pepper/v8_var_converter.cc View 1 2 3 10 chunks +27 lines, -37 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dmichael (off chromium)
6 years, 7 months ago (2014-05-19 16:29:01 UTC) #1
raymes
Looks a lot cleaner overall! The early message queue stuff combined with the plugin queue ...
6 years, 7 months ago (2014-05-20 01:54:41 UTC) #2
dmichael (off chromium)
Comments addressed, I think. Thanks! https://chromiumcodereview.appspot.com/290553004/diff/60001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (left): https://chromiumcodereview.appspot.com/290553004/diff/60001/content/renderer/pepper/message_channel.cc#oldcode412 content/renderer/pepper/message_channel.cc:412: if (instance_->module()->IsProxied()) { On ...
6 years, 7 months ago (2014-05-20 18:09:11 UTC) #3
dmichael (off chromium)
I added the DrainCompletedPluginMessages call you suggested, then remembered it's not necessary. So I'll take ...
6 years, 7 months ago (2014-05-20 18:14:16 UTC) #4
raymes
lgtm https://chromiumcodereview.appspot.com/290553004/diff/60001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (right): https://chromiumcodereview.appspot.com/290553004/diff/60001/content/renderer/pepper/message_channel.cc#newcode303 content/renderer/pepper/message_channel.cc:303: true); Oh I see now, sorry I was ...
6 years, 7 months ago (2014-05-21 01:27:35 UTC) #5
dmichael (off chromium)
jam: Please look w.r.t. content/public. The story is, when used for NaCl, the Messaging API ...
6 years, 7 months ago (2014-05-21 22:52:34 UTC) #6
raymes
https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h File content/public/renderer/renderer_ppapi_host.h (right): https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h#newcode129 content/public/renderer/renderer_ppapi_host.h:129: // plugin module is a host for "external plugins." ...
6 years, 7 months ago (2014-05-22 00:25:30 UTC) #7
dmichael (off chromium)
+teravest for NaClHelper. I realized that putting the NaCl stuff in the PepperHelper was the ...
6 years, 7 months ago (2014-05-22 20:18:02 UTC) #8
teravest
Only one quick thing about NaClHelper; I didn't look at the rest of the change. ...
6 years, 7 months ago (2014-05-22 20:20:30 UTC) #9
dmichael (off chromium)
https://chromiumcodereview.appspot.com/290553004/diff/120001/components/nacl/renderer/nacl_helper.h File components/nacl/renderer/nacl_helper.h (right): https://chromiumcodereview.appspot.com/290553004/diff/120001/components/nacl/renderer/nacl_helper.h#newcode11 components/nacl/renderer/nacl_helper.h:11: // This class listens for Pepper creation events from ...
6 years, 7 months ago (2014-05-22 20:34:59 UTC) #10
teravest
lgtm NaClHelper looks good to me.
6 years, 7 months ago (2014-05-22 20:36:06 UTC) #11
raymes
https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h File content/public/renderer/renderer_ppapi_host.h (right): https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h#newcode129 content/public/renderer/renderer_ppapi_host.h:129: // plugin module is a host for "external plugins." ...
6 years, 7 months ago (2014-05-22 23:42:33 UTC) #12
raymes
On 2014/05/22 23:42:33, raymes wrote: > https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h > File content/public/renderer/renderer_ppapi_host.h (right): > > https://chromiumcodereview.appspot.com/290553004/diff/100001/content/public/renderer/renderer_ppapi_host.h#newcode129 > ...
6 years, 7 months ago (2014-05-22 23:42:45 UTC) #13
jam
content/public and chrome lgtm
6 years, 7 months ago (2014-05-23 15:12:26 UTC) #14
dmichael (off chromium)
The CQ bit was checked by dmichael@chromium.org
6 years, 7 months ago (2014-05-23 15:16:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/290553004/140001
6 years, 7 months ago (2014-05-23 15:17:12 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 20:13:16 UTC) #17
Message was sent while issue was closed.
Change committed as 272583

Powered by Google App Engine
This is Rietveld 408576698