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

Issue 9668031: Implement BrowserPluginPlaceholder. (Closed)

Created:
8 years, 9 months ago by Fady Samuel
Modified:
8 years, 9 months ago
Reviewers:
brettw, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, rjkroege, darin (slow to review)
Visibility:
Public.

Description

Implement BrowserPluginPlaceholder. A browser plugin is a plugin container that hosts an out-of-process RenderView (guest). Loading up a new process, creating a new RenderView, navigating to a given URL, and establishing a guest-to-host channel can take hundreds of milliseconds. Furthermore, a RenderView's associated browser-side WebContents, RenderViewHost, and SiteInstance must be created and accessed on the UI thread thread on the browser. Thus, we must avoid blocking the host RenderView as well to avoid introducing the potential for a deadlock. To address the two issues above, we use a BrowserPluginPlaceholder (currently an empty WebViewPlugin wrapper) to take place of the guest renderer until the guest renderer is ready. BUG=117894 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126534 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126598

Patch Set 1 #

Total comments: 28

Patch Set 2 : Updated according to comments by jam #

Total comments: 1

Patch Set 3 : Moved browser plugin constants to separate file #

Patch Set 4 : Forgot to upload new files #

Patch Set 5 : Updated location of browser plugin constants to browser plugin directory #

Patch Set 6 : Use StaticAtomicSequenceNumber instead of AtomicSequenceNumber #

Patch Set 7 : Possibly fixed merge issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -0 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A content/renderer/browser_plugin/browser_plugin_constants.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A content/renderer/browser_plugin/browser_plugin_constants.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A content/renderer/browser_plugin/browser_plugin_placeholder.h View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
A content/renderer/browser_plugin/browser_plugin_placeholder.cc View 1 2 3 4 5 1 chunk +143 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Fady Samuel
8 years, 9 months ago (2012-03-09 22:43:18 UTC) #1
jam
this is a large feature so it need a bug to explain it and track ...
8 years, 9 months ago (2012-03-12 16:30:09 UTC) #2
Fady Samuel
Creating the bug to track progress on the Browser Plugin now. In the meantime, I've ...
8 years, 9 months ago (2012-03-12 22:11:43 UTC) #3
jam
http://codereview.chromium.org/9668031/diff/6001/webkit/plugins/plugin_constants.h File webkit/plugins/plugin_constants.h (right): http://codereview.chromium.org/9668031/diff/6001/webkit/plugins/plugin_constants.h#newcode10 webkit/plugins/plugin_constants.h:10: WEBKIT_PLUGINS_EXPORT extern const char kBrowserPluginName[]; why are these in ...
8 years, 9 months ago (2012-03-13 17:14:24 UTC) #4
Fady Samuel
Moved browser plugin constants to content/common/browser_plugin_constants.h/cc. Is this a good location?
8 years, 9 months ago (2012-03-13 18:56:11 UTC) #5
jam
On 2012/03/13 18:56:11, Fady Samuel wrote: > Moved browser plugin constants to content/common/browser_plugin_constants.h/cc. > Is ...
8 years, 9 months ago (2012-03-13 19:27:57 UTC) #6
Fady Samuel
On 2012/03/13 19:27:57, John Abd-El-Malek wrote: > On 2012/03/13 18:56:11, Fady Samuel wrote: > > ...
8 years, 9 months ago (2012-03-13 19:43:37 UTC) #7
Fady Samuel
Moved constants to content/renderer/browser_plugin directory.
8 years, 9 months ago (2012-03-13 19:43:53 UTC) #8
jam
On 2012/03/13 19:43:53, Fady Samuel wrote: > Moved constants to content/renderer/browser_plugin directory. is there a ...
8 years, 9 months ago (2012-03-13 19:46:54 UTC) #9
Fady Samuel
On 2012/03/13 19:46:54, John Abd-El-Malek wrote: > On 2012/03/13 19:43:53, Fady Samuel wrote: > > ...
8 years, 9 months ago (2012-03-13 19:49:52 UTC) #10
jam
lgtm
8 years, 9 months ago (2012-03-13 19:53:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/9668031/6023
8 years, 9 months ago (2012-03-13 19:54:34 UTC) #12
commit-bot: I haz the power
Change committed as 126534
8 years, 9 months ago (2012-03-14 01:54:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/9668031/16001
8 years, 9 months ago (2012-03-14 03:26:53 UTC) #14
commit-bot: I haz the power
Can't apply patch for file content/browser/renderer_host/render_process_host_impl.cc. While running patch -p1 --forward --force; patching file content/browser/renderer_host/render_process_host_impl.cc ...
8 years, 9 months ago (2012-03-14 03:36:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/9668031/14004
8 years, 9 months ago (2012-03-14 03:51:44 UTC) #16
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 06:42:55 UTC) #17
Change committed as 126598

Powered by Google App Engine
This is Rietveld 408576698