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

Issue 11565024: Browser Plugin: Reduce code repetition in BrowserPluginManager. (Closed)

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

Description

Browser Plugin: Reduce code repetition in BrowserPluginManager. Move the bulk of message handling in BrowserPluginmanager to BrowserPlugin. This is not just code simplification. This change will enable a more extensible BrowserPlugin by allowing observers to intercept messages on specific instances of BrowserPlugin and perform custom behavior or simply add more behavior to specific instances of BrowserPlugin. BUG=166165 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173476

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated #

Total comments: 8

Patch Set 3 : Added comment #

Patch Set 4 : Use switch statement instead of set. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -450 lines) Patch
M content/renderer/browser_plugin/browser_plugin.h View 1 5 chunks +28 lines, -37 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 4 chunks +256 lines, -225 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 25 chunks +72 lines, -47 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.h View 1 2 3 2 chunks +3 lines, -26 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.cc View 1 2 3 3 chunks +34 lines, -111 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin_manager.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Fady Samuel
No change in functionality yet. This is simply a standalone code simplification with the intent ...
8 years ago (2012-12-14 00:01:46 UTC) #1
Fady Samuel
8 years ago (2012-12-14 15:31:24 UTC) #2
sadrul
Looks good. A few comments: https://codereview.chromium.org/11565024/diff/1/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://codereview.chromium.org/11565024/diff/1/content/renderer/browser_plugin/browser_plugin.cc#newcode411 content/renderer/browser_plugin/browser_plugin.cc:411: // Construct the loadStop ...
8 years ago (2012-12-14 16:08:39 UTC) #3
Fady Samuel
Addressed your comments sadrul. I've snuck in a small change in BrowserPluginManager, where instance_ids now ...
8 years ago (2012-12-14 17:05:54 UTC) #4
sadrul
Cool. LGTM
8 years ago (2012-12-14 17:09:41 UTC) #5
Charlie Reis
I like where this is heading, but the IPC stuff worries me. Do you think ...
8 years ago (2012-12-14 18:24:02 UTC) #6
Fady Samuel
https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc File content/renderer/browser_plugin/browser_plugin_manager_impl.cc (right): https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc#newcode40 content/renderer/browser_plugin/browser_plugin_manager_impl.cc:40: if (browser_plugin_messages_.count(message.type()) > 0) { On 2012/12/14 18:24:02, creis ...
8 years ago (2012-12-14 18:47:48 UTC) #7
Charlie Reis
https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc File content/renderer/browser_plugin/browser_plugin_manager_impl.cc (right): https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc#newcode40 content/renderer/browser_plugin/browser_plugin_manager_impl.cc:40: if (browser_plugin_messages_.count(message.type()) > 0) { On 2012/12/14 18:47:48, Fady ...
8 years ago (2012-12-14 19:16:36 UTC) #8
Fady Samuel
+cdn@, Cris, could you please take a look at BrowserPluginManagerImpl::OnMessageReceived. We're routing on the first ...
8 years ago (2012-12-14 19:34:08 UTC) #9
Charlie Reis
https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc File content/renderer/browser_plugin/browser_plugin_manager_impl.cc (right): https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc#newcode87 content/renderer/browser_plugin/browser_plugin_manager_impl.cc:87: void BrowserPluginManagerImpl::RegisterBrowserPluginMessages() { On 2012/12/14 19:34:08, Fady Samuel wrote: ...
8 years ago (2012-12-14 19:40:32 UTC) #10
Fady Samuel
On 2012/12/14 19:40:32, creis wrote: > https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc > File content/renderer/browser_plugin/browser_plugin_manager_impl.cc (right): > > https://codereview.chromium.org/11565024/diff/8001/content/renderer/browser_plugin/browser_plugin_manager_impl.cc#newcode87 > ...
8 years ago (2012-12-14 19:53:37 UTC) #11
Charlie Reis
Thanks. LGTM pending Cris's review.
8 years ago (2012-12-14 20:51:28 UTC) #12
Cris Neckar
Doesn't appear to introduce unpriv->priv ipcs so lgtm
8 years ago (2012-12-14 21:44:43 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/11565024/9009
8 years ago (2012-12-14 21:47:18 UTC) #14
commit-bot: I haz the power
8 years ago (2012-12-15 02:25:36 UTC) #15
Retried try job too often on win_rel for step(s) browser_tests

Powered by Google App Engine
This is Rietveld 408576698