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

Issue 10377170: Browser Plugin: browser process side changes (Closed)

Created:
8 years, 7 months ago by Fady Samuel
Modified:
8 years, 7 months ago
Reviewers:
mmocny, jam, Charlie Reis
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Browser Plugin: browser process side changes Major classes: BrowserPluginHost: This is the host-side of both the guest and the embedder renderers. The embedder BrowserPluginHost keeps track of its guests, and cleans them up when it navigates away, or whe tabs are switched or when it crashes. The guest BrowserPluginHost knows about its embdder, and about its instance ID, as well as some initialization parameters such as URL and initial size. BUG=117897 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138475

Patch Set 1 #

Patch Set 2 : Removed example #

Patch Set 3 : More comments #

Patch Set 4 : Updated to not expose GetPendingRenderViewHost #

Total comments: 26

Patch Set 5 : Updated according to creis@ #

Total comments: 25

Patch Set 6 : Updated according to creis@ #

Total comments: 8

Patch Set 7 : Updated according to jam@ #

Total comments: 16

Patch Set 8 : Clean-up according to creis@ #

Total comments: 1

Patch Set 9 : fixed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -2 lines) Patch
A content/browser/browser_plugin/browser_plugin_host.h View 1 2 3 4 5 6 7 1 chunk +151 lines, -0 lines 0 comments Download
A content/browser/browser_plugin/browser_plugin_host.cc View 1 2 3 4 5 6 7 8 1 chunk +259 lines, -0 lines 0 comments Download
A content/browser/browser_plugin/browser_plugin_host_helper.h View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A content/browser/browser_plugin/browser_plugin_host_helper.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Fady Samuel
Hi all, jam@: Please look at style, layering and overall structure. I left WebContentsImpL::GetPendingRenderViewHost because ...
8 years, 7 months ago (2012-05-16 16:22:09 UTC) #1
jam
On 2012/05/16 16:22:09, Fady Samuel wrote: > Hi all, > > jam@: Please look at ...
8 years, 7 months ago (2012-05-16 16:29:48 UTC) #2
mmocny
Fady: Hiding guests is absolutely necessary for resource management (as well as to pause rendering ...
8 years, 7 months ago (2012-05-16 17:20:25 UTC) #3
Fady Samuel
On 2012/05/16 17:20:25, mmocny wrote: > Fady: Hiding guests is absolutely necessary for resource management ...
8 years, 7 months ago (2012-05-16 21:14:30 UTC) #4
Fady Samuel
On 2012/05/16 21:14:30, Fady Samuel wrote: > On 2012/05/16 17:20:25, mmocny wrote: > > Fady: ...
8 years, 7 months ago (2012-05-16 21:15:29 UTC) #5
Fady Samuel
On 2012/05/16 16:29:48, John Abd-El-Malek wrote: > On 2012/05/16 16:22:09, Fady Samuel wrote: > > ...
8 years, 7 months ago (2012-05-16 21:16:22 UTC) #6
mmocny
On 2012/05/16 21:15:29, Fady Samuel wrote: > On 2012/05/16 21:14:30, Fady Samuel wrote: > > ...
8 years, 7 months ago (2012-05-16 21:19:00 UTC) #7
Charlie Reis
https://chromiumcodereview.appspot.com/10377170/diff/6001/content/browser/browser_plugin/browser_plugin_host.cc File content/browser/browser_plugin/browser_plugin_host.cc (right): https://chromiumcodereview.appspot.com/10377170/diff/6001/content/browser/browser_plugin/browser_plugin_host.cc#newcode30 content/browser/browser_plugin/browser_plugin_host.cc:30: web_contents->GetRenderViewHost())); This needs another space of indent. https://chromiumcodereview.appspot.com/10377170/diff/6001/content/browser/browser_plugin/browser_plugin_host.cc#newcode78 content/browser/browser_plugin/browser_plugin_host.cc:78: ...
8 years, 7 months ago (2012-05-17 21:24:05 UTC) #8
Fady Samuel
Addressed all but MapInstance issues. This should be a message that goes through the pepper ...
8 years, 7 months ago (2012-05-18 17:37:52 UTC) #9
Charlie Reis
I would have preferred to take care of the OnMapInstance change in this CL, but ...
8 years, 7 months ago (2012-05-18 20:35:24 UTC) #10
Fady Samuel
Updated. Note this cl depends on landing https://chromiumcodereview.appspot.com/10411033/ first. https://chromiumcodereview.appspot.com/10377170/diff/11002/content/browser/browser_plugin/browser_plugin_host.cc File content/browser/browser_plugin/browser_plugin_host.cc (right): https://chromiumcodereview.appspot.com/10377170/diff/11002/content/browser/browser_plugin/browser_plugin_host.cc#newcode32 content/browser/browser_plugin/browser_plugin_host.cc:32: ...
8 years, 7 months ago (2012-05-21 14:30:17 UTC) #11
jam
there's a lot of plumbing in various classes to get the ConnectEmbedderToChannel/NavigateGuestFromEmbedder messages across. It's ...
8 years, 7 months ago (2012-05-21 15:10:54 UTC) #12
Fady Samuel
Moved stuff into BrowserPluginHostHelper to avoid plumbing in WebContentsImpl, RenderViewHostDelegate and RenderViewHostImpl. Thanks John! https://chromiumcodereview.appspot.com/10377170/diff/18001/content/browser/browser_plugin/browser_plugin_host.h ...
8 years, 7 months ago (2012-05-21 17:27:02 UTC) #13
Charlie Reis
Thanks, I like the new observer class. https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc File content/browser/browser_plugin/browser_plugin_host.cc (right): https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc#newcode236 content/browser/browser_plugin/browser_plugin_host.cc:236: new BrowserPluginHostHelper(this, ...
8 years, 7 months ago (2012-05-21 18:20:44 UTC) #14
jam
lgtm http://codereview.chromium.org/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc File content/browser/browser_plugin/browser_plugin_host.cc (right): http://codereview.chromium.org/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc#newcode236 content/browser/browser_plugin/browser_plugin_host.cc:236: new BrowserPluginHostHelper(this, render_view_host); On 2012/05/21 18:20:44, creis wrote: ...
8 years, 7 months ago (2012-05-21 18:30:24 UTC) #15
Fady Samuel
https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc File content/browser/browser_plugin/browser_plugin_host.cc (right): https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.cc#newcode236 content/browser/browser_plugin/browser_plugin_host.cc:236: new BrowserPluginHostHelper(this, render_view_host); On 2012/05/21 18:30:24, John Abd-El-Malek wrote: ...
8 years, 7 months ago (2012-05-21 19:22:16 UTC) #16
Charlie Reis
LGTM! https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.h File content/browser/browser_plugin/browser_plugin_host.h (right): https://chromiumcodereview.appspot.com/10377170/diff/15010/content/browser/browser_plugin/browser_plugin_host.h#newcode29 content/browser/browser_plugin/browser_plugin_host.h:29: // such as initial size. On 2012/05/21 19:22:17, ...
8 years, 7 months ago (2012-05-21 19:49:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10377170/7006
8 years, 7 months ago (2012-05-23 01:56:14 UTC) #18
commit-bot: I haz the power
Try job failure for 10377170-7006 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-23 02:20:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10377170/7006
8 years, 7 months ago (2012-05-23 02:39:20 UTC) #20
commit-bot: I haz the power
Try job failure for 10377170-7006 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-23 03:06:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10377170/7006
8 years, 7 months ago (2012-05-23 07:57:27 UTC) #22
commit-bot: I haz the power
Try job failure for 10377170-7006 (retry) on win_rel for step "sync_unit_tests". It's a second try, ...
8 years, 7 months ago (2012-05-23 11:32:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10377170/7006
8 years, 7 months ago (2012-05-23 11:44:48 UTC) #24
commit-bot: I haz the power
8 years, 7 months ago (2012-05-23 14:44:35 UTC) #25
Try job failure for 10377170-7006 (retry) on win_rel for step "sync_unit_tests".
It's a second try, previously, step "sync_unit_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698