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

Issue 116163008: Move the plugin placeholder from CppBoundClass to gin::Wrappable (Closed)

Created:
7 years ago by jochen (gone - plz use gerrit)
Modified:
6 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Move the plugin placeholder from CppBoundClass to gin::Wrappable BUG=297480 R=aa@chromium.org,bauerb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243682

Patch Set 1 #

Total comments: 2

Patch Set 2 : counter-proposal #

Total comments: 2

Patch Set 3 : added unittest #

Patch Set 4 : updates #

Total comments: 6

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -68 lines) Patch
M chrome/renderer/plugins/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 4 5 chunks +20 lines, -10 lines 0 comments Download
M components/plugins.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/plugins/renderer/DEPS View 2 chunks +1 line, -1 line 0 comments Download
M components/plugins/renderer/mobile_youtube_plugin.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M components/plugins/renderer/mobile_youtube_plugin.cc View 1 2 3 4 chunks +22 lines, -7 lines 0 comments Download
M components/plugins/renderer/plugin_placeholder.h View 1 2 3 3 chunks +13 lines, -14 lines 0 comments Download
M components/plugins/renderer/plugin_placeholder.cc View 1 2 3 4 8 chunks +21 lines, -23 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jochen (gone - plz use gerrit)
this is still somewhat WIP, but I wanted to get some first comments. Aaron, any ...
7 years ago (2013-12-18 14:45:46 UTC) #1
Bernhard Bauer
Could you extract the gin::Wrappable into a separate object that calls back to PluginPlaceholder? https://codereview.chromium.org/116163008/diff/1/components/plugins/renderer/webview_plugin.cc ...
7 years ago (2013-12-18 15:31:04 UTC) #2
Aaron Boodman
Hm, I think this works nicer if we make GetObjectTemplate(Builder?) virtual after all. Since it ...
7 years ago (2013-12-18 18:23:53 UTC) #3
jochen (gone - plz use gerrit)
Another problem is that the base class doesn't have a WrapperInfo so we can't safely ...
7 years ago (2013-12-18 18:29:56 UTC) #4
Aaron Boodman
I'm not sure how to test this, but it at least links. https://codereview.chromium.org/116163008/diff/20001/gin/wrappable.cc File gin/wrappable.cc ...
7 years ago (2013-12-18 19:12:17 UTC) #5
jochen (gone - plz use gerrit)
nice You can test by enabling click to play in content settings and going to ...
7 years ago (2013-12-18 19:15:12 UTC) #6
Aaron Boodman
I added a unittest for wrapping, unwrapping and calling methods on multiple levels of inheritance ...
7 years ago (2013-12-18 19:47:06 UTC) #7
jochen (gone - plz use gerrit)
gin::Wrappable know owns the placeholder. It'll disappear as soon as it's GC'd (which will only ...
7 years ago (2013-12-19 13:28:29 UTC) #8
jochen (gone - plz use gerrit)
and yes, I could pull out a helper class that is gin::Wrappable<> and have that ...
7 years ago (2013-12-19 13:51:17 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/116163008/diff/60001/components/plugins/renderer/plugin_placeholder.cc File components/plugins/renderer/plugin_placeholder.cc (right): https://codereview.chromium.org/116163008/diff/60001/components/plugins/renderer/plugin_placeholder.cc#newcode88 components/plugins/renderer/plugin_placeholder.cc:88: // (which will destroy us). I think this comment ...
6 years, 11 months ago (2014-01-07 09:35:39 UTC) #10
jochen (gone - plz use gerrit)
https://codereview.chromium.org/116163008/diff/60001/components/plugins/renderer/plugin_placeholder.cc File components/plugins/renderer/plugin_placeholder.cc (right): https://codereview.chromium.org/116163008/diff/60001/components/plugins/renderer/plugin_placeholder.cc#newcode88 components/plugins/renderer/plugin_placeholder.cc:88: // (which will destroy us). On 2014/01/07 09:35:42, Bernhard ...
6 years, 11 months ago (2014-01-08 19:18:23 UTC) #11
Bernhard Bauer
lgtm
6 years, 11 months ago (2014-01-08 19:56:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/116163008/120001
6 years, 11 months ago (2014-01-08 20:01:36 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 22:55:25 UTC) #14
Message was sent while issue was closed.
Change committed as 243682

Powered by Google App Engine
This is Rietveld 408576698