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

Issue 17208003: Track NPObject ownership by the originating plugins' NPP identifier. [4/6] (Chrome) (Closed)

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

Description

Track NPObject ownership by the originating plugins' NPP identifier. [4/6] (Chrome) This CL makes Chrome-side changes necessary for tracking of NPObject ownership to out-of-process NPAPI plugin instances. Ownership information is now included whenever an NPObject is marshalled across IPC, to be passed when instantiating NPObjectProxy instances for objects. In the plugin process each NPObject is tracked to its owning plugin instance, and browser-owned objects are tracked to a dummy NPP identifier. This depends upon crrev.com/17220002 and is a prerequisite for crrev.com/17208003. BUG=152006 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207840

Patch Set 1 #

Patch Set 2 : Rebase and fix include. #

Patch Set 3 : Temporarily remove check for NULL owner when receiving objects. #

Total comments: 8

Patch Set 4 : Address review comments #

Patch Set 5 : Fix DCHECKs and SetDefaultNPObjectOwner callsite #

Patch Set 6 : Don't DCHECK(npobject_listeners_.empty()) on channel teardown. #

Patch Set 7 : Remove DCHECKs on proxy and stub maps. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -48 lines) Patch
M content/child/np_channel_base.h View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download
M content/child/np_channel_base.cc View 1 2 3 4 5 6 3 chunks +47 lines, -12 lines 0 comments Download
M content/child/npobject_proxy.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/npobject_proxy.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/child/npobject_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M content/child/npobject_util.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M content/child/plugin_param_traits.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/child/plugin_param_traits.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
M content/content_plugin.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/plugin/plugin_channel.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/plugin/plugin_channel.cc View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 3 chunks +15 lines, -0 lines 0 comments Download
M content/plugin/webplugin_proxy.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 4 chunks +10 lines, -1 line 0 comments Download
M webkit/plugins/npapi/webplugin_impl.cc View 1 2 3 2 chunks +15 lines, -3 lines 0 comments Download
M webkit/renderer/cpp_variant_unittest.cc View 1 14 chunks +40 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Wez
PTAL :)
7 years, 6 months ago (2013-06-18 22:00:18 UTC) #1
darin (slow to review)
https://codereview.chromium.org/17208003/diff/23002/content/child/np_channel_base.cc File content/child/np_channel_base.cc (right): https://codereview.chromium.org/17208003/diff/23002/content/child/np_channel_base.cc#newcode81 content/child/np_channel_base.cc:81: NPChannelBase::~NPChannelBase() { should we assert that these new maps ...
7 years, 6 months ago (2013-06-18 23:26:24 UTC) #2
Wez
https://codereview.chromium.org/17208003/diff/23002/content/child/np_channel_base.cc File content/child/np_channel_base.cc (right): https://codereview.chromium.org/17208003/diff/23002/content/child/np_channel_base.cc#newcode81 content/child/np_channel_base.cc:81: NPChannelBase::~NPChannelBase() { On 2013/06/18 23:26:24, darin wrote: > should ...
7 years, 6 months ago (2013-06-19 05:17:53 UTC) #3
darin (slow to review)
LGTM
7 years, 6 months ago (2013-06-19 05:19:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/17208003/28003
7 years, 6 months ago (2013-06-19 05:23:58 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-19 05:41:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/17208003/55001
7 years, 6 months ago (2013-06-21 00:03:32 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=141911
7 years, 6 months ago (2013-06-21 01:53:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/17208003/75001
7 years, 6 months ago (2013-06-21 03:49:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/17208003/75001
7 years, 6 months ago (2013-06-21 06:59:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/17208003/75001
7 years, 6 months ago (2013-06-21 15:54:47 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 15:59:52 UTC) #12
Message was sent while issue was closed.
Change committed as 207840

Powered by Google App Engine
This is Rietveld 408576698