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

Issue 459553003: Replace NPObject usage in ppapi with gin (Closed)

Created:
6 years, 4 months ago by raymes
Modified:
6 years, 3 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Replace NPObject usage in ppapi with gin This replaces usage of NPObject in pepper with gin-backed V8 objects. It is unfortunate that this CL is so large, but there isn't a nice way to have the old implementation and the new one side-by-side. There are 4 major parts to this CL: 1) Changing the HostVarTracker to track V8ObjectVars rather than NPObjectVars (host_var_tracker.cc). 2) Changing plugin elements (in plugin_object.cc) to be gin-backed objects. 3) Changing postMessage bindings (message_channel.cc) be gin-backed objects. 4) Changing the implementation of PPB_Var_Deprecated (ppb_var_deprecated_impl.cc) to call directly into V8. BUG=351636 Committed: https://crrev.com/2515b7dc2832404db4aa8d7d20257f0865c0d931 Cr-Commit-Position: refs/heads/master@{#293366}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 7

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Total comments: 68

Patch Set 17 : #

Total comments: 2

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Patch Set 25 : #

Patch Set 26 : #

Patch Set 27 : #

Total comments: 1

Patch Set 28 : #

Patch Set 29 : #

Patch Set 30 : #

Patch Set 31 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1030 lines, -1299 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/pepper/host_var_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +31 lines, -43 lines 0 comments Download
M content/renderer/pepper/host_var_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +79 lines, -75 lines 0 comments Download
M content/renderer/pepper/host_var_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +70 lines, -51 lines 0 comments Download
M content/renderer/pepper/message_channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 29 30 4 chunks +58 lines, -39 lines 0 comments Download
M content/renderer/pepper/message_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 8 chunks +198 lines, -346 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 7 chunks +13 lines, -11 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 18 chunks +83 lines, -52 lines 0 comments Download
M content/renderer/pepper/pepper_try_catch.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 chunks +10 lines, -9 lines 0 comments Download
M content/renderer/pepper/pepper_try_catch.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 7 chunks +37 lines, -17 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +15 lines, -14 lines 0 comments Download
M content/renderer/pepper/plugin_object.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +39 lines, -46 lines 0 comments Download
M content/renderer/pepper/plugin_object.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +166 lines, -301 lines 0 comments Download
M content/renderer/pepper/ppb_var_deprecated_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +190 lines, -263 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -2 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/pepper/v8object_var.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppp_instance_private_proxy_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ppapi/shared_impl/scoped_pp_var.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -3 lines 0 comments Download
M ppapi/shared_impl/scoped_pp_var.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -6 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (2 generated)
raymes
Hi jochen, dmichael, PTAL at this final part to the npobject->gin conversion. Unfortunately it's large. ...
6 years, 4 months ago (2014-08-11 06:49:03 UTC) #1
jochen (gone - plz use gerrit)
On 2014/08/11 at 06:49:03, raymes wrote: > Hi jochen, dmichael, > > PTAL at this ...
6 years, 4 months ago (2014-08-11 15:24:42 UTC) #2
raymes
On 2014/08/11 15:24:42, jochen (slow - soon OOO) wrote: > On 2014/08/11 at 06:49:03, raymes ...
6 years, 4 months ago (2014-08-12 01:25:06 UTC) #3
Krzysztof Olczyk
https://codereview.chromium.org/459553003/diff/220001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/459553003/diff/220001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode2376 content/renderer/pepper/pepper_plugin_instance_impl.cc:2376: return ExecuteScript(pp_instance(), script.get(), NULL); do you really need to ...
6 years, 4 months ago (2014-08-13 07:13:56 UTC) #4
jochen (gone - plz use gerrit)
some random notes. I've uploaded a fix for gin that will hopefully let you work ...
6 years, 4 months ago (2014-08-13 14:17:08 UTC) #5
raymes
https://codereview.chromium.org/459553003/diff/40001/content/content_renderer.gypi File content/content_renderer.gypi (left): https://codereview.chromium.org/459553003/diff/40001/content/content_renderer.gypi#oldcode519 content/content_renderer.gypi:519: 'renderer/pepper/npobject_var.h', They're already in the list :), they were ...
6 years, 4 months ago (2014-08-14 00:47:57 UTC) #6
dmichael (off chromium)
some comments, haven't made it too far yet https://codereview.chromium.org/459553003/diff/40001/content/renderer/pepper/message_channel.h File content/renderer/pepper/message_channel.h (right): https://codereview.chromium.org/459553003/diff/40001/content/renderer/pepper/message_channel.h#newcode53 content/renderer/pepper/message_channel.h:53: static ...
6 years, 4 months ago (2014-08-20 23:09:16 UTC) #7
dmichael (off chromium)
https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (right): https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/message_channel.cc#newcode147 content/renderer/pepper/message_channel.cc:147: Might be good to add a comment w/TODO... // ...
6 years, 4 months ago (2014-08-21 22:24:25 UTC) #8
raymes
Thanks for this!! I got busy with other reviews today and so I didn't get ...
6 years, 4 months ago (2014-08-22 08:28:41 UTC) #9
dmichael (off chromium)
https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc File content/renderer/pepper/host_var_tracker.cc (right): https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc#newcode91 content/renderer/pepper/host_var_tracker.cc:91: V8ObjectVarKey(instance, v8::Handle<v8::Object>())); On 2014/08/22 08:28:39, raymes wrote: > I ...
6 years, 4 months ago (2014-08-22 16:28:47 UTC) #10
raymes
https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc File content/renderer/pepper/host_var_tracker.cc (right): https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc#newcode91 content/renderer/pepper/host_var_tracker.cc:91: V8ObjectVarKey(instance, v8::Handle<v8::Object>())); Sorry it was late Friday afternoon and ...
6 years, 4 months ago (2014-08-25 01:40:01 UTC) #11
dmichael (off chromium)
lgtm, thanks! https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc File content/renderer/pepper/host_var_tracker.cc (right): https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc#newcode91 content/renderer/pepper/host_var_tracker.cc:91: V8ObjectVarKey(instance, v8::Handle<v8::Object>())); On 2014/08/25 01:40:00, raymes wrote: ...
6 years, 4 months ago (2014-08-25 17:31:12 UTC) #12
raymes
https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc File content/renderer/pepper/host_var_tracker.cc (right): https://codereview.chromium.org/459553003/diff/300001/content/renderer/pepper/host_var_tracker.cc#newcode91 content/renderer/pepper/host_var_tracker.cc:91: V8ObjectVarKey(instance, v8::Handle<v8::Object>())); On 2014/08/25 17:31:11, dmichael wrote: > On ...
6 years, 4 months ago (2014-08-26 05:15:11 UTC) #13
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 3 months ago (2014-08-28 00:43:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/459553003/500001
6 years, 3 months ago (2014-08-28 00:45:03 UTC) #15
commit-bot: I haz the power
Committed patchset #26 (id:500001) as 21f446ae855d60cc896b40cb9a3249ed07f150b3
6 years, 3 months ago (2014-08-28 02:12:29 UTC) #16
raymes
A revert of this CL (patchset #26) has been created in https://codereview.chromium.org/512983004/ by raymes@chromium.org. The ...
6 years, 3 months ago (2014-08-28 04:49:43 UTC) #17
vabr (Chromium)
On 2014/08/28 04:49:43, raymes wrote: > A revert of this CL (patchset #26) has been ...
6 years, 3 months ago (2014-08-28 07:29:56 UTC) #18
raymes
Hey Dave, PTAL at the diff for the last patch set if you get a ...
6 years, 3 months ago (2014-08-28 08:27:03 UTC) #19
dmichael (off chromium)
Honstly haven't looked carefully, but seems reasonable to me. Sad that we can't be sure ...
6 years, 3 months ago (2014-08-28 15:50:35 UTC) #20
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 3 months ago (2014-08-29 01:33:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/459553003/520001
6 years, 3 months ago (2014-08-29 01:34:50 UTC) #22
commit-bot: I haz the power
Committed patchset #27 (id:520001) as ee49e63baf57e503bd71dfe61c8a80df63eac9aa
6 years, 3 months ago (2014-08-29 02:46:07 UTC) #23
raymes
A revert of this CL (patchset #27) has been created in https://codereview.chromium.org/522583002/ by raymes@chromium.org. The ...
6 years, 3 months ago (2014-08-29 05:04:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/459553003/540001
6 years, 3 months ago (2014-09-01 00:57:50 UTC) #26
commit-bot: I haz the power
Committed patchset #28 (id:540001) as e06bc5d896e494b9ec556f0e89dcc523778a1432
6 years, 3 months ago (2014-09-01 01:55:13 UTC) #27
raymes
A revert of this CL (patchset #28 id:540001) has been created in https://codereview.chromium.org/537483002/ by raymes@chromium.org. ...
6 years, 3 months ago (2014-09-03 05:47:32 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/459553003/600001
6 years, 3 months ago (2014-09-04 22:26:42 UTC) #30
commit-bot: I haz the power
Committed patchset #31 (id:600001) as 8d34dc7609c1e27fe4e6807b9cb2c9220e942fa2
6 years, 3 months ago (2014-09-04 23:02:35 UTC) #31
commit-bot: I haz the power
Patchset 31 (id:??) landed as https://crrev.com/6fe3f977401afbb8e62adf7912e9bd59c0445d02 Cr-Commit-Position: refs/heads/master@{#292295}
6 years, 3 months ago (2014-09-10 02:56:34 UTC) #32
commit-bot: I haz the power
Patchset 31 (id:??) landed as https://crrev.com/b7e8c60b493a0c36938aba1ae895899d15daf37c Cr-Commit-Position: refs/heads/master@{#292557}
6 years, 3 months ago (2014-09-10 03:05:43 UTC) #33
commit-bot: I haz the power
Patchset 31 (id:??) landed as https://crrev.com/9111ba5a6248ce85a5f983e376823387055c3011 Cr-Commit-Position: refs/heads/master@{#292823}
6 years, 3 months ago (2014-09-10 03:15:16 UTC) #34
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:33:41 UTC) #35
Message was sent while issue was closed.
Patchset 31 (id:??) landed as
https://crrev.com/2515b7dc2832404db4aa8d7d20257f0865c0d931
Cr-Commit-Position: refs/heads/master@{#293366}

Powered by Google App Engine
This is Rietveld 408576698