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

Issue 11416074: Browser Plugin: Simplified BrowserPluginManager (Closed)

Created:
8 years, 1 month ago by Fady Samuel
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Browser Plugin: Simplified BrowserPluginManager BrowserPluginManager is no longer a singleton. BrowserPluginManager is now a RenderViewObserver. All BrowserPluginMsg_* are routed which means they're targeted at a particular RenderView. This means that more than one BrowserPluginManager can exist per process. BrowserPluginManager is now refcounted and so it exists as long as a BrowserPlugin or RenderViewImpl holds a reference to it. In tests, we inject a BrowserPluginManagerFactory that creates MockBrowserPluginManagers. BUG=159936 Test=BrowserPluginTest.*, BrowserPluginHostTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168920

Patch Set 1 #

Patch Set 2 : Added missing factory #

Patch Set 3 : Cleanup #

Total comments: 6

Patch Set 4 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -139 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 10 chunks +31 lines, -11 lines 0 comments Download
M content/common/browser_plugin_messages.h View 1 chunk +42 lines, -43 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 19 chunks +21 lines, -20 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 2 chunks +32 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.h View 1 2 3 3 chunks +37 lines, -11 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.cc View 1 2 1 chunk +12 lines, -17 lines 0 comments Download
A content/renderer/browser_plugin/browser_plugin_manager_factory.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.h View 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.cc View 1 2 4 chunks +12 lines, -10 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin_manager.h View 4 chunks +8 lines, -10 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin_manager.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 5 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Fady Samuel
Hi Charlie, I believe I've addressed all the concerns raised a couple of weeks ago ...
8 years, 1 month ago (2012-11-19 21:08:23 UTC) #1
Charlie Reis
Nice. LGTM, but please run try jobs first. https://codereview.chromium.org/11416074/diff/5001/content/renderer/browser_plugin/browser_plugin_manager.h File content/renderer/browser_plugin/browser_plugin_manager.h (right): https://codereview.chromium.org/11416074/diff/5001/content/renderer/browser_plugin/browser_plugin_manager.h#newcode62 content/renderer/browser_plugin/browser_plugin_manager.h:62: // ...
8 years, 1 month ago (2012-11-20 00:33:34 UTC) #2
Fady Samuel
Fixed nits. Running through some bots then CQ'ing. http://codereview.chromium.org/11416074/diff/5001/content/renderer/browser_plugin/browser_plugin_manager.h File content/renderer/browser_plugin/browser_plugin_manager.h (right): http://codereview.chromium.org/11416074/diff/5001/content/renderer/browser_plugin/browser_plugin_manager.h#newcode62 content/renderer/browser_plugin/browser_plugin_manager.h:62: // ...
8 years, 1 month ago (2012-11-20 02:04:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11416074/4003
8 years, 1 month ago (2012-11-20 16:27:40 UTC) #4
commit-bot: I haz the power
Presubmit check for 11416074-4003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-20 16:27:49 UTC) #5
Fady Samuel
+cdn@ for browser_plugin_messages.h changes. Thanks, Fady
8 years, 1 month ago (2012-11-20 16:28:55 UTC) #6
Fady Samuel
Hi Justin, I think Cris might be OOO? Could you please take a look? Thanks, ...
8 years, 1 month ago (2012-11-20 18:15:09 UTC) #7
Cris Neckar
lgtm for IPC changes
8 years, 1 month ago (2012-11-20 19:07:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11416074/4003
8 years, 1 month ago (2012-11-20 19:15:52 UTC) #9
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 1 month ago (2012-11-20 20:25:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11416074/4003
8 years, 1 month ago (2012-11-20 20:27:03 UTC) #11
commit-bot: I haz the power
8 years, 1 month ago (2012-11-20 23:58:08 UTC) #12
Change committed as 168920

Powered by Google App Engine
This is Rietveld 408576698