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

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed)

Created:
6 years, 7 months ago by Zachary Kuznia
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Visibility:
Public.

Description

Forward MIME types to BrowserPlugin when a viewer is specified. When the mime_type_handler key is available in an extension, this creates a BrowserPlugin and gives the ID of it to the background page. BUG=368514 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276841

Patch Set 1 #

Patch Set 2 : Style cleanup #

Total comments: 4

Patch Set 3 : Code review fixes #

Total comments: 10

Patch Set 4 : Code review fixes #

Total comments: 5

Patch Set 5 : Code review fixes #

Total comments: 9

Patch Set 6 : Code review fixes #

Total comments: 4

Patch Set 7 : Code review fixes #

Total comments: 2

Patch Set 8 : Update comments #

Total comments: 4

Patch Set 9 : Send URLRequest instead of extra params #

Total comments: 13

Patch Set 10 : Code review fixes #

Patch Set 11 : Rebase #

Patch Set 12 : Fix unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -86 lines) Patch
M chrome/browser/extensions/api/streams_private/streams_private_api.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/streams_private/streams_private_api.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/plugin_manager.h View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/plugin_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +30 lines, -28 lines 0 comments Download
M chrome/common/extensions/api/streams_private.idl View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/mime_types_handler.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/buffered_resource_handler.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/buffered_resource_handler.cc View 1 2 3 4 5 5 chunks +33 lines, -10 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -11 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -16 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Zachary Kuznia
Hi Fady, Could you take a look at this? In particular, the registration of BrowserPlugin ...
6 years, 7 months ago (2014-04-30 00:42:44 UTC) #1
Zachary Kuznia
Hi Ben, Could you take a look at the changes to chrome/*/extensions? Thanks, -Zach
6 years, 7 months ago (2014-04-30 00:43:51 UTC) #2
not at google - send to devlin
is there somebody who knows the plugin code that you can ask to review? I've ...
6 years, 7 months ago (2014-04-30 00:48:51 UTC) #3
Zachary Kuznia
I'll add someone else for chrome/browser/extensions/plugin_manager.{cc,h} I'm actually going to deprecate tabId once everything is ...
6 years, 7 months ago (2014-04-30 01:23:35 UTC) #4
Zachary Kuznia
Hello yoz, Could you take a look at: chrome/browser/extensions/plugin_manager.{cc,h}? Thanks, -Zach
6 years, 7 months ago (2014-04-30 01:32:32 UTC) #5
Yoyo Zhou
PluginManager LGTM https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/plugin_manager.h File chrome/browser/extensions/plugin_manager.h (right): https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/plugin_manager.h#newcode69 chrome/browser/extensions/plugin_manager.h:69: std::set<std::string> mime_type_handler_; This should be documented. It's ...
6 years, 7 months ago (2014-04-30 14:47:18 UTC) #6
not at google - send to devlin
lgtm, sorry to keep harping on about the comments. https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/api/streams_private/streams_private_api.cc File chrome/browser/extensions/api/streams_private/streams_private_api.cc (right): https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/api/streams_private/streams_private_api.cc#newcode73 chrome/browser/extensions/api/streams_private/streams_private_api.cc:73: ...
6 years, 7 months ago (2014-04-30 15:42:43 UTC) #7
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/api/streams_private/streams_private_api.cc File chrome/browser/extensions/api/streams_private/streams_private_api.cc (right): https://codereview.chromium.org/263513004/diff/40001/chrome/browser/extensions/api/streams_private/streams_private_api.cc#newcode73 chrome/browser/extensions/api/streams_private/streams_private_api.cc:73: info.tab_id.reset(new int(ExtensionTabUtil::GetTabId(web_contents))); On 2014/04/30 15:42:43, kalman wrote: > with ...
6 years, 7 months ago (2014-05-01 00:38:22 UTC) #8
Fady Samuel
I'm not terribly familiar with StreamResourceHandler and related code. I didn't really touch these while ...
6 years, 7 months ago (2014-05-06 21:06:33 UTC) #9
Zachary Kuznia
Hi Matt, Could you take a look at: content/browser/loader/buffered_resource_handler.{cc,h} chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.{cc,h} content/browser/loader/stream_resource_handler.{cc,h} Thanks, -Zach
6 years, 7 months ago (2014-05-06 22:00:24 UTC) #10
mmenke
On 2014/05/06 22:00:24, Zachary Kuznia wrote: > Hi Matt, > > Could you take a ...
6 years, 7 months ago (2014-05-06 22:01:57 UTC) #11
mmenke
So sorry I forgot about this. Looking at this now, will get back to you ...
6 years, 7 months ago (2014-05-12 16:35:34 UTC) #12
mmenke
https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode328 content/browser/loader/buffered_resource_handler.cc:328: if (handler->HasPayload()) { I'm really not following any of ...
6 years, 7 months ago (2014-05-12 17:12:13 UTC) #13
mmenke
https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode336 content/browser/loader/buffered_resource_handler.cc:336: return CopyReadBufferToNextHandler(request_id); I think it's less than ideal to ...
6 years, 7 months ago (2014-05-13 15:14:32 UTC) #14
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode336 content/browser/loader/buffered_resource_handler.cc:336: return CopyReadBufferToNextHandler(request_id); On 2014/05/13 15:14:32, mmenke wrote: > I ...
6 years, 7 months ago (2014-05-20 22:24:39 UTC) #15
mmenke
https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode336 content/browser/loader/buffered_resource_handler.cc:336: return CopyReadBufferToNextHandler(request_id); On 2014/05/20 22:24:39, Zachary Kuznia wrote: > ...
6 years, 7 months ago (2014-05-21 15:17:48 UTC) #16
Zachary Kuznia
On 2014/05/21 15:17:48, mmenke wrote: > https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc > File content/browser/loader/buffered_resource_handler.cc (right): > > https://codereview.chromium.org/263513004/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode336 > ...
6 years, 6 months ago (2014-05-29 00:14:26 UTC) #17
mmenke
Just nits. https://codereview.chromium.org/263513004/diff/80001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/80001/content/browser/loader/buffered_resource_handler.cc#newcode365 content/browser/loader/buffered_resource_handler.cc:365: if (payload_for_old_handler.empty()) { Suggest a short comment ...
6 years, 6 months ago (2014-05-29 16:10:29 UTC) #18
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/80001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/263513004/diff/80001/content/browser/loader/buffered_resource_handler.cc#newcode365 content/browser/loader/buffered_resource_handler.cc:365: if (payload_for_old_handler.empty()) { On 2014/05/29 16:10:29, mmenke wrote: > ...
6 years, 6 months ago (2014-05-29 20:42:39 UTC) #19
mmenke
LGTM! https://codereview.chromium.org/263513004/diff/100001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/263513004/diff/100001/content/browser/loader/resource_dispatcher_host_impl.h#newcode215 content/browser/loader/resource_dispatcher_host_impl.h:215: // the value should be sent to the ...
6 years, 6 months ago (2014-05-30 15:24:32 UTC) #20
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/100001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/263513004/diff/100001/content/browser/loader/resource_dispatcher_host_impl.h#newcode216 content/browser/loader/resource_dispatcher_host_impl.h:216: // it. On 2014/05/30 15:24:32, mmenke wrote: > nit: ...
6 years, 6 months ago (2014-05-30 17:47:21 UTC) #21
Zachary Kuznia
Hello jam, Could you do an OWNERS review of: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h content/public/browser/resource_dispatcher_host_delegate.cc content/public/browser/resource_dispatcher_host_delegate.h Thanks, -Zach
6 years, 6 months ago (2014-05-30 17:49:45 UTC) #22
jam
https://codereview.chromium.org/263513004/diff/120001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/120001/content/public/browser/resource_dispatcher_host_delegate.h#newcode114 content/public/browser/resource_dispatcher_host_delegate.h:114: std::string* view_id); can you document what payload and view_id ...
6 years, 6 months ago (2014-05-30 21:05:27 UTC) #23
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/120001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/120001/content/public/browser/resource_dispatcher_host_delegate.h#newcode114 content/public/browser/resource_dispatcher_host_delegate.h:114: std::string* view_id); On 2014/05/30 21:05:27, jam wrote: > can ...
6 years, 6 months ago (2014-05-30 21:21:05 UTC) #24
jam
https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h#newcode120 content/public/browser/resource_dispatcher_host_delegate.h:120: std::string* view_id); if my reading is correct, content calls ...
6 years, 6 months ago (2014-05-30 23:04:16 UTC) #25
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h#newcode120 content/public/browser/resource_dispatcher_host_delegate.h:120: std::string* view_id); On 2014/05/30 23:04:16, jam wrote: > if ...
6 years, 6 months ago (2014-05-30 23:40:54 UTC) #26
jam
https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h#newcode120 content/public/browser/resource_dispatcher_host_delegate.h:120: std::string* view_id); On 2014/05/30 23:40:55, Zachary Kuznia wrote: > ...
6 years, 6 months ago (2014-06-02 06:41:52 UTC) #27
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/263513004/diff/140001/content/public/browser/resource_dispatcher_host_delegate.h#newcode120 content/public/browser/resource_dispatcher_host_delegate.h:120: std::string* view_id); On 2014/06/02 06:41:53, jam wrote: > On ...
6 years, 6 months ago (2014-06-05 22:28:22 UTC) #28
jam
https://codereview.chromium.org/263513004/diff/160001/chrome/browser/extensions/url_request_util.cc File chrome/browser/extensions/url_request_util.cc (right): https://codereview.chromium.org/263513004/diff/160001/chrome/browser/extensions/url_request_util.cc#newcode137 chrome/browser/extensions/url_request_util.cc:137: return true; ditto https://codereview.chromium.org/263513004/diff/160001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/263513004/diff/160001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode449 chrome/browser/renderer_host/chrome_render_message_filter.cc:449: ...
6 years, 6 months ago (2014-06-06 15:00:41 UTC) #29
Zachary Kuznia
https://codereview.chromium.org/263513004/diff/160001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/263513004/diff/160001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode449 chrome/browser/renderer_host/chrome_render_message_filter.cc:449: *allowed = true; On 2014/06/06 15:00:40, jam wrote: > ...
6 years, 6 months ago (2014-06-07 01:45:37 UTC) #30
jam
lgtm
6 years, 6 months ago (2014-06-09 22:56:57 UTC) #31
Zachary Kuznia
The CQ bit was checked by zork@chromium.org
6 years, 6 months ago (2014-06-12 17:59:50 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/263513004/220001
6 years, 6 months ago (2014-06-12 18:02:39 UTC) #33
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 22:57:58 UTC) #34
Message was sent while issue was closed.
Change committed as 276841

Powered by Google App Engine
This is Rietveld 408576698