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

Issue 15007012: Track NPObject ownership by the originating plugins' NPP identifier. [2/3] (Chrome) (Closed)

Created:
7 years, 7 months ago by Wez
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, abarth-chromium
Visibility:
Public.

Description

Track NPObject ownership by the originating plugins' NPP identifier. [2/3] (Chrome) This CL updates Chrome to return plugin NPP identifiers for NPAPI, PPAPI and browser plugins, and to make the necessary calls into Blink to support object ownership tracking. This CL requires Blink CL crrev.com/14989014, and is itself required by Blink CL crrev.com/14019005. BUG=152006 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202364

Patch Set 1 #

Patch Set 2 : Add missing autofill_renderer include. #

Patch Set 3 : Fix browser plugin. #

Patch Set 4 : Add missing includes. #

Total comments: 11

Patch Set 5 : Remove comment. #

Patch Set 6 : Use struct _NPP* rather than NPP to avoid having to include npruntime.h. #

Patch Set 7 : Replace NPP with struct _NPP* #

Patch Set 8 : Add missing forward-define. #

Total comments: 10

Patch Set 9 : Address review comments and partially fix PPAPI. #

Patch Set 10 : Fix NPObject ownership registration for PPAPI/NaCl. #

Patch Set 11 : Fix teardown of BrowserPlugins that were never initialize()d. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -29 lines) Patch
M chrome/renderer/plugins/webview_plugin.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/plugins/webview_plugin.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/webplugin_delegate_proxy.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/glue/cpp_bound_class.h View 1 chunk +2 lines, -3 lines 0 comments Download
M webkit/glue/cpp_bound_class.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -13 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +32 lines, -7 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_object.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_webplugin_impl.h View 1 2 3 4 5 6 7 9 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Wez
Chrome side of the NPObject ownership tracking patch.
7 years, 7 months ago (2013-05-13 03:01:21 UTC) #1
abarth-chromium
I'm not an OWNER for any of this code, so I'm not sure whether I ...
7 years, 7 months ago (2013-05-13 18:18:28 UTC) #2
Wez
John, could you take a look at this, please? Adam, leaving you CC'd, since this ...
7 years, 7 months ago (2013-05-13 18:41:52 UTC) #3
Wez
Sorry guys, hard to find one reviewer for this particular combination of files. :-/ For ...
7 years, 7 months ago (2013-05-15 22:25:47 UTC) #4
jamesr
https://codereview.chromium.org/15007012/diff/15001/webkit/plugins/npapi/webplugin_impl.cc File webkit/plugins/npapi/webplugin_impl.cc (right): https://codereview.chromium.org/15007012/diff/15001/webkit/plugins/npapi/webplugin_impl.cc#newcode293 webkit/plugins/npapi/webplugin_impl.cc:293: return npp_; // delegate_->GetPluginNPP(); hmm? what's up with the ...
7 years, 7 months ago (2013-05-15 22:32:15 UTC) #5
Wez
https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/npapi/webplugin_impl.cc File webkit/plugins/npapi/webplugin_impl.cc (right): https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/npapi/webplugin_impl.cc#newcode293 webkit/plugins/npapi/webplugin_impl.cc:293: return npp_; // delegate_->GetPluginNPP(); On 2013/05/15 22:32:15, jamesr wrote: ...
7 years, 7 months ago (2013-05-15 23:14:16 UTC) #6
jamesr
On 2013/05/15 23:14:16, Wez wrote: > https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/support/webkit_support.gypi#newcode24 > webkit/support/webkit_support.gypi:24: > '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', > On 2013/05/15 22:32:15, ...
7 years, 7 months ago (2013-05-15 23:18:38 UTC) #7
Fady Samuel
https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc#newcode1140 content/renderer/browser_plugin/browser_plugin.cc:1140: // Tell |container| to allow this plugin to use ...
7 years, 7 months ago (2013-05-15 23:21:15 UTC) #8
Fady Samuel
7 years, 7 months ago (2013-05-15 23:21:16 UTC) #9
Wez
On 2013/05/15 23:18:38, jamesr wrote: > On 2013/05/15 23:14:16, Wez wrote: > > > https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/support/webkit_support.gypi#newcode24 ...
7 years, 7 months ago (2013-05-15 23:22:03 UTC) #10
jamesr
On 2013/05/15 23:21:15, Fady Samuel wrote: > https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc > File content/renderer/browser_plugin/browser_plugin.cc (right): > > https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc#newcode1140 ...
7 years, 7 months ago (2013-05-15 23:39:24 UTC) #11
Fady Samuel
On 2013/05/15 23:39:24, jamesr wrote: > On 2013/05/15 23:21:15, Fady Samuel wrote: > > > ...
7 years, 7 months ago (2013-05-15 23:48:35 UTC) #12
Bernhard Bauer
https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/ppapi/ppapi_webplugin_impl.h File webkit/plugins/ppapi/ppapi_webplugin_impl.h (right): https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/ppapi/ppapi_webplugin_impl.h#newcode47 webkit/plugins/ppapi/ppapi_webplugin_impl.h:47: virtual NPP pluginNPP(); On 2013/05/15 23:14:16, Wez wrote: > ...
7 years, 7 months ago (2013-05-16 09:26:55 UTC) #13
Wez
On 2013/05/16 09:26:55, Bernhard Bauer wrote: > https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/ppapi/ppapi_webplugin_impl.h > File webkit/plugins/ppapi/ppapi_webplugin_impl.h (right): > > https://chromiumcodereview.appspot.com/15007012/diff/15001/webkit/plugins/ppapi/ppapi_webplugin_impl.h#newcode47 ...
7 years, 7 months ago (2013-05-16 18:00:53 UTC) #14
Wez
https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/15007012/diff/15001/content/renderer/browser_plugin/browser_plugin.cc#newcode1140 content/renderer/browser_plugin/browser_plugin.cc:1140: // Tell |container| to allow this plugin to use ...
7 years, 7 months ago (2013-05-16 18:27:16 UTC) #15
Bernhard Bauer
On 2013/05/16 18:00:53, Wez wrote: > On 2013/05/16 09:26:55, Bernhard Bauer wrote: > > > ...
7 years, 7 months ago (2013-05-17 13:09:51 UTC) #16
Wez
All of the NPAPI bindings (see WebBindings.h in Blink) take NPP values as parameters, having ...
7 years, 7 months ago (2013-05-17 16:52:34 UTC) #17
Wez
+darin
7 years, 7 months ago (2013-05-18 06:59:09 UTC) #18
jamesr
On 2013/05/17 16:52:34, Wez wrote: > All of the NPAPI bindings (see WebBindings.h in Blink) ...
7 years, 7 months ago (2013-05-20 23:15:29 UTC) #19
Wez
On 2013/05/20 23:15:29, jamesr wrote: > On 2013/05/17 16:52:34, Wez wrote: > > All of ...
7 years, 7 months ago (2013-05-21 01:01:39 UTC) #20
jamesr
On 2013/05/21 01:01:39, Wez wrote: > On 2013/05/20 23:15:29, jamesr wrote: > > On 2013/05/17 ...
7 years, 7 months ago (2013-05-21 17:43:13 UTC) #21
jamesr
https://codereview.chromium.org/15007012/diff/38001/chrome/renderer/plugins/webview_plugin.cc File chrome/renderer/plugins/webview_plugin.cc (right): https://codereview.chromium.org/15007012/diff/38001/chrome/renderer/plugins/webview_plugin.cc#newcode118 chrome/renderer/plugins/webview_plugin.cc:118: return NULL; how is this OK? https://codereview.chromium.org/15007012/diff/38001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc ...
7 years, 7 months ago (2013-05-21 18:20:21 UTC) #22
Wez
https://codereview.chromium.org/15007012/diff/38001/chrome/renderer/plugins/webview_plugin.cc File chrome/renderer/plugins/webview_plugin.cc (right): https://codereview.chromium.org/15007012/diff/38001/chrome/renderer/plugins/webview_plugin.cc#newcode118 chrome/renderer/plugins/webview_plugin.cc:118: return NULL; On 2013/05/21 18:20:21, jamesr wrote: > how ...
7 years, 7 months ago (2013-05-22 06:55:25 UTC) #23
jamesr
lgtm
7 years, 7 months ago (2013-05-22 07:01:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/15007012/78001
7 years, 7 months ago (2013-05-25 06:40:31 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=44098
7 years, 7 months ago (2013-05-25 08:48:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/15007012/78001
7 years, 7 months ago (2013-05-26 06:28:20 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=131326
7 years, 7 months ago (2013-05-26 08:26:43 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/15007012/78001
7 years, 7 months ago (2013-05-26 16:29:27 UTC) #29
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=131346
7 years, 7 months ago (2013-05-26 18:24:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/15007012/111001
7 years, 7 months ago (2013-05-26 23:29:12 UTC) #31
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 03:17:13 UTC) #32
Message was sent while issue was closed.
Change committed as 202364

Powered by Google App Engine
This is Rietveld 408576698