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

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed)

Created:
9 years, 3 months ago by Robert Sesek
Modified:
9 years, 3 months ago
CC:
chromium-reviews, kkania, dpranke+watch-content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Convert the PluginService interface to be an async wrapper around PluginList. This adds additional methods to PluginService so that most callers can be moved off PluginList and use the new asynchronous interface. This is in preparation for moving plugin probing out-of-process on Mac and Linux. BUG=17863, 95114 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102421

Patch Set 1 #

Patch Set 2 : Ready for review #

Total comments: 33

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : New interface as discussed #

Total comments: 7

Patch Set 6 : Revert to PS3 and rebase #

Total comments: 9

Patch Set 7 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -206 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 3 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api.h View 1 2 3 5 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api.cc View 1 2 3 4 5 5 chunks +15 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_apitest.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 5 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 5 4 chunks +34 lines, -43 lines 0 comments Download
M chrome/browser/pdf_unsupported_feature.cc View 1 2 3 4 5 6 8 chunks +35 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 2 5 7 chunks +14 lines, -43 lines 0 comments Download
M content/browser/plugin_service.h View 1 2 3 4 5 6 7 chunks +36 lines, -6 lines 0 comments Download
M content/browser/plugin_service.cc View 1 2 3 4 5 4 chunks +50 lines, -22 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.h View 1 2 5 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 5 4 chunks +7 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 chunks +32 lines, -8 lines 0 comments Download
M webkit/plugins/npapi/plugin_list.h View 1 2 5 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Robert Sesek
jar: metrics service jam: overall bauerb: plugins
9 years, 3 months ago (2011-09-20 23:13:06 UTC) #1
jam
very exciting :) http://codereview.chromium.org/7980011/diff/6001/chrome/browser/automation/testing_automation_provider.h File chrome/browser/automation/testing_automation_provider.h (right): http://codereview.chromium.org/7980011/diff/6001/chrome/browser/automation/testing_automation_provider.h#newcode497 chrome/browser/automation/testing_automation_provider.h:497: void GetPluginsInfoSendReply(Browser* browser, info: GetPluginsInfoReply or ...
9 years, 3 months ago (2011-09-21 00:04:50 UTC) #2
jam
http://codereview.chromium.org/7980011/diff/6001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): http://codereview.chromium.org/7980011/diff/6001/content/browser/renderer_host/render_message_filter.cc#newcode298 content/browser/renderer_host/render_message_filter.cc:298: case ViewHostMsg_GetPlugins::ID: nit: not needed anymore
9 years, 3 months ago (2011-09-21 00:23:15 UTC) #3
Robert Sesek
Switched to const ref and forward declared. http://codereview.chromium.org/7980011/diff/6001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): http://codereview.chromium.org/7980011/diff/6001/chrome/browser/metrics/metrics_service.h#newcode158 chrome/browser/metrics/metrics_service.h:158: // When ...
9 years, 3 months ago (2011-09-21 01:13:43 UTC) #4
jam
http://codereview.chromium.org/7980011/diff/6001/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/7980011/diff/6001/content/browser/plugin_service.cc#newcode452 content/browser/plugin_service.cc:452: base::Unretained(&context), On 2011/09/21 01:13:44, rsesek wrote: > On 2011/09/21 ...
9 years, 3 months ago (2011-09-21 06:31:46 UTC) #5
Bernhard Bauer
http://codereview.chromium.org/7980011/diff/6001/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/7980011/diff/6001/content/browser/plugin_service.cc#newcode32 content/browser/plugin_service.cc:32: #include "webkit/plugins/npapi/mock_plugin_list.h" Nit: Should PluginService really know about testing-specific ...
9 years, 3 months ago (2011-09-21 14:31:26 UTC) #6
jam
http://codereview.chromium.org/7980011/diff/4022/content/browser/renderer_host/buffered_resource_handler.cc File content/browser/renderer_host/buffered_resource_handler.cc (right): http://codereview.chromium.org/7980011/diff/4022/content/browser/renderer_host/buffered_resource_handler.cc#newcode347 content/browser/renderer_host/buffered_resource_handler.cc:347: PluginService::GetInstance()->GetPlugins( On 2011/09/21 14:31:26, Bernhard Bauer wrote: > If ...
9 years, 3 months ago (2011-09-21 16:22:54 UTC) #7
Robert Sesek
On 2011/09/21 16:22:54, John Abd-El-Malek wrote: > http://codereview.chromium.org/7980011/diff/4022/content/browser/renderer_host/buffered_resource_handler.cc > File content/browser/renderer_host/buffered_resource_handler.cc (right): > > http://codereview.chromium.org/7980011/diff/4022/content/browser/renderer_host/buffered_resource_handler.cc#newcode347 ...
9 years, 3 months ago (2011-09-21 16:23:49 UTC) #8
Robert Sesek
On 2011/09/21 06:31:46, John Abd-El-Malek wrote: > it looks like there's only one caller of ...
9 years, 3 months ago (2011-09-21 16:46:52 UTC) #9
jam
lgtm! for the future, please avoid syncing before uploading patchsets that address comment. that makes ...
9 years, 3 months ago (2011-09-21 17:20:15 UTC) #10
Robert Sesek
Another go, please. I've changed the interface to be as discussed over email. I think ...
9 years, 3 months ago (2011-09-21 22:17:51 UTC) #11
Bernhard Bauer
http://codereview.chromium.org/7980011/diff/4034/chrome/browser/ui/webui/plugins_ui.cc File chrome/browser/ui/webui/plugins_ui.cc (right): http://codereview.chromium.org/7980011/diff/4034/chrome/browser/ui/webui/plugins_ui.cc#newcode237 chrome/browser/ui/webui/plugins_ui.cc:237: PluginService::GetInstance()->LoadPluginList(true, We don't need to force a reload here ...
9 years, 3 months ago (2011-09-21 22:47:05 UTC) #12
Bernhard Bauer
And thanks for doing this, BTW! This interface is very nice.
9 years, 3 months ago (2011-09-21 22:47:34 UTC) #13
jar (doing other things)
metrics_service changes LGTM
9 years, 3 months ago (2011-09-21 23:19:44 UTC) #14
jam
I think having two ways of getting the plugins, either calling GetCachedPlugins or calling LoadPlugins(refresh=false) ...
9 years, 3 months ago (2011-09-21 23:45:13 UTC) #15
jam
http://codereview.chromium.org/7980011/diff/4034/content/browser/plugin_service.h File content/browser/plugin_service.h (right): http://codereview.chromium.org/7980011/diff/4034/content/browser/plugin_service.h#newcode133 content/browser/plugin_service.h:133: void LoadPluginList(bool refresh, const base::Closure& completion_callback); On 2011/09/21 23:45:13, ...
9 years, 3 months ago (2011-09-21 23:45:54 UTC) #16
jam
On 2011/09/21 23:45:13, John Abd-El-Malek wrote: > I think having two ways of getting the ...
9 years, 3 months ago (2011-09-22 01:15:32 UTC) #17
jam
On 2011/09/22 01:15:32, John Abd-El-Malek wrote: > On 2011/09/21 23:45:13, John Abd-El-Malek wrote: > > ...
9 years, 3 months ago (2011-09-22 02:29:25 UTC) #18
Bernhard Bauer
On 2011/09/22 01:15:32, John Abd-El-Malek wrote: > On 2011/09/21 23:45:13, John Abd-El-Malek wrote: > > ...
9 years, 3 months ago (2011-09-22 09:13:53 UTC) #19
jam
On 2011/09/22 09:13:53, Bernhard Bauer wrote: > On 2011/09/22 01:15:32, John Abd-El-Malek wrote: > > ...
9 years, 3 months ago (2011-09-22 16:18:05 UTC) #20
Bernhard Bauer
On Thu, Sep 22, 2011 at 18:18, <jam@chromium.org> wrote: > On 2011/09/22 09:13:53, Bernhard Bauer ...
9 years, 3 months ago (2011-09-22 16:26:57 UTC) #21
jam
On Thu, Sep 22, 2011 at 9:26 AM, Bernhard Bauer <bauerb@chromium.org> wrote: > On Thu, ...
9 years, 3 months ago (2011-09-22 16:45:49 UTC) #22
Robert Sesek
If I reverted to Path Set 3, rebased John's patch (thanks for that cleanup!), and ...
9 years, 3 months ago (2011-09-22 17:03:41 UTC) #23
jam
yes, sounds great, thanks On Thu, Sep 22, 2011 at 10:03 AM, <rsesek@chromium.org> wrote: > ...
9 years, 3 months ago (2011-09-22 17:12:24 UTC) #24
Robert Sesek
On 2011/09/22 17:12:24, John Abd-El-Malek wrote: > yes, sounds great, thanks Done.
9 years, 3 months ago (2011-09-22 18:57:31 UTC) #25
jam
http://codereview.chromium.org/7980011/diff/4034/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/7980011/diff/4034/chrome/browser/metrics/metrics_service.cc#newcode791 chrome/browser/metrics/metrics_service.cc:791: PluginService::GetInstance()->GetPlugins(&plugins); nit: can just get rid of the plugins ...
9 years, 3 months ago (2011-09-22 21:10:59 UTC) #26
Robert Sesek
http://codereview.chromium.org/7980011/diff/9002/chrome/browser/pdf_unsupported_feature.cc File chrome/browser/pdf_unsupported_feature.cc (right): http://codereview.chromium.org/7980011/diff/9002/chrome/browser/pdf_unsupported_feature.cc#newcode396 chrome/browser/pdf_unsupported_feature.cc:396: base::Bind(&GotPluginGroupsCallback, tab)); On 2011/09/22 21:10:59, John Abd-El-Malek wrote: > ...
9 years, 3 months ago (2011-09-22 23:26:51 UTC) #27
jam
lgtm, thanks
9 years, 3 months ago (2011-09-22 23:35:38 UTC) #28
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/7980011/17001
9 years, 3 months ago (2011-09-22 23:37:59 UTC) #29
commit-bot: I haz the power
9 years, 3 months ago (2011-09-23 01:43:59 UTC) #30
Change committed as 102421

Powered by Google App Engine
This is Rietveld 408576698