Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Issue 10412056: Browser Plugin: Remove MapInstance from BrowserPluginHost + More cross-process navigation work (Closed)

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

Description

Browser Plugin: Remove MapInstance from BrowserPluginHost + More cross-process navigation work This patch does two things: It addresses the issues mentioned regarding BrowserPluginHost::OnMapInstance. Instead this work is done over the GuestToEmbedderChannel. This also introduces some plumbing on ViewMsg_Navigate that allows for navigating back to swapped out RenderViews. BUG=128976 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138861

Patch Set 1 #

Patch Set 2 : Fixed diff #

Patch Set 3 : Removed commented out code #

Total comments: 6

Patch Set 4 : Added TODO to avoid using loseCompositorContext #

Patch Set 5 : Restored unix_hacker style for guest_to_embedder_channel() #

Patch Set 6 : Factor out initialization of embedder_channel_name #

Patch Set 7 : Simplified size logic #

Total comments: 5

Patch Set 8 : Fixed nits #

Patch Set 9 : Fix test build #

Patch Set 10 : fixed visitedlink_unittest #

Patch Set 11 : Additional small fix to visitedlink (forgot to change one CreateRenderView call) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -194 lines) Patch
chrome/browser/visitedlink/visitedlink_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -2 lines 0 comments Download
content/browser/browser_plugin/browser_plugin_host.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +4 lines, -31 lines 0 comments Download
content/browser/browser_plugin/browser_plugin_host.cc View 1 2 3 4 5 6 5 chunks +2 lines, -40 lines 0 comments Download
content/browser/browser_plugin/browser_plugin_host_helper.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
content/browser/browser_plugin/browser_plugin_host_helper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -10 lines 0 comments Download
content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
content/browser/web_contents/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
content/browser/web_contents/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +34 lines, -10 lines 0 comments Download
content/common/browser_plugin_messages.h View 1 2 3 4 5 6 2 chunks +7 lines, -7 lines 0 comments Download
content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 1 chunk +4 lines, -7 lines 0 comments Download
content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -28 lines 0 comments Download
content/renderer/browser_plugin/browser_plugin_channel_manager.h View 3 chunks +15 lines, -7 lines 0 comments Download
content/renderer/browser_plugin/browser_plugin_channel_manager.cc View 5 6 7 3 chunks +38 lines, -23 lines 0 comments Download
content/renderer/browser_plugin/guest_to_embedder_channel.h View 3 chunks +14 lines, -2 lines 0 comments Download
content/renderer/browser_plugin/guest_to_embedder_channel.cc View 1 2 3 5 6 7 6 chunks +26 lines, -5 lines 0 comments Download
content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +38 lines, -6 lines 0 comments Download
content/test/test_renderer_host.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Fady Samuel
creis@: cross-process stuff + MapInstance removal jam@: OWNER
8 years, 7 months ago (2012-05-23 16:08:58 UTC) #1
Charlie Reis
Cross-process stuff LGTM, pending the questions below. https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc#newcode1171 content/browser/web_contents/web_contents_impl.cc:1171: embedder_process_id); I ...
8 years, 7 months ago (2012-05-23 16:57:53 UTC) #2
Fady Samuel
http://codereview.chromium.org/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): http://codereview.chromium.org/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc#newcode1171 content/browser/web_contents/web_contents_impl.cc:1171: embedder_process_id); On 2012/05/23 16:57:54, creis wrote: > I remember ...
8 years, 7 months ago (2012-05-23 17:32:14 UTC) #3
Charlie Reis
https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc#newcode1171 content/browser/web_contents/web_contents_impl.cc:1171: embedder_process_id); On 2012/05/23 17:32:15, Fady Samuel wrote: > On ...
8 years, 7 months ago (2012-05-23 17:52:54 UTC) #4
Fady Samuel
On 2012/05/23 17:52:54, creis wrote: > https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc > File content/browser/web_contents/web_contents_impl.cc (right): > > https://chromiumcodereview.appspot.com/10412056/diff/5001/content/browser/web_contents/web_contents_impl.cc#newcode1171 > ...
8 years, 7 months ago (2012-05-23 18:20:38 UTC) #5
Fady Samuel
-jam@ for now, until final look by creis@, then will readd.
8 years, 7 months ago (2012-05-23 18:56:41 UTC) #6
Charlie Reis
Thanks, LGTM.
8 years, 7 months ago (2012-05-23 19:07:58 UTC) #7
Fady Samuel
+jam again, ready for final OWNER approval. thanks.
8 years, 7 months ago (2012-05-23 19:30:54 UTC) #8
jam
lgtm with nits http://codereview.chromium.org/10412056/diff/16003/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): http://codereview.chromium.org/10412056/diff/16003/content/renderer/browser_plugin/browser_plugin.cc#newcode141 content/renderer/browser_plugin/browser_plugin.cc:141: DCHECK(dispatcher); nit: skip this dcheck, it's ...
8 years, 7 months ago (2012-05-23 22:11:10 UTC) #9
Fady Samuel
Fixed nits. Committing. Thanks. https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/browser_plugin/browser_plugin.cc#newcode141 content/renderer/browser_plugin/browser_plugin.cc:141: DCHECK(dispatcher); On 2012/05/23 22:11:10, John ...
8 years, 7 months ago (2012-05-23 22:23:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10412056/19001
8 years, 7 months ago (2012-05-23 22:24:14 UTC) #11
jam
https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/render_view_impl.cc#newcode781 content/renderer/render_view_impl.cc:781: RenderViewImpl::guest_to_embedder_channel() const { On 2012/05/23 22:23:43, Fady Samuel wrote: ...
8 years, 7 months ago (2012-05-23 22:30:20 UTC) #12
Fady Samuel
On 2012/05/23 22:30:20, John Abd-El-Malek wrote: > https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://chromiumcodereview.appspot.com/10412056/diff/16003/content/renderer/render_view_impl.cc#newcode781 ...
8 years, 7 months ago (2012-05-23 22:38:06 UTC) #13
commit-bot: I haz the power
Try job failure for 10412056-19001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-23 22:49:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10412056/25001
8 years, 7 months ago (2012-05-24 01:26:20 UTC) #15
commit-bot: I haz the power
Try job failure for 10412056-25001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-24 01:49:37 UTC) #16
Fady Samuel
+sky chrome/browser/visitedlink OWNER
8 years, 7 months ago (2012-05-24 02:00:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10412056/19003
8 years, 7 months ago (2012-05-24 02:00:50 UTC) #18
commit-bot: I haz the power
Presubmit check for 10412056-19003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-24 02:01:07 UTC) #19
sky
LGTM
8 years, 7 months ago (2012-05-24 15:52:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10412056/19003
8 years, 7 months ago (2012-05-24 15:52:52 UTC) #21
commit-bot: I haz the power
Try job failure for 10412056-19003 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-24 16:21:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10412056/25003
8 years, 7 months ago (2012-05-24 16:48:57 UTC) #23
commit-bot: I haz the power
8 years, 7 months ago (2012-05-24 19:31:28 UTC) #24
Change committed as 138861

Powered by Google App Engine
This is Rietveld 408576698