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

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed)

Created:
7 years, 3 months ago by jam
Modified:
7 years, 3 months ago
Reviewers:
jschuh, ananta
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Load NPAPI plugin resources through the browser process directly instead of going through the renderer. This is needed because when we have site isolation enabled we won't trust the renderer to fetch urls from arbitrary origins, which is something that NPAPI plugins can do. In a followup I'll implement range requests. For now this is behind the --direct-npapi-requests flag. BUG=286074 R=ananta@chromium.org, jschuh@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222602

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : handle errors #

Patch Set 7 : sync #

Patch Set 8 : plumb RenderView's routing IDs #

Total comments: 2

Patch Set 9 : review comments #

Patch Set 10 : review comments #

Patch Set 11 : sync #

Patch Set 12 : sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+723 lines, -216 lines) Patch
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/plugin_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +18 lines, -3 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +29 lines, -17 lines 0 comments Download
M content/child/npapi/plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
M content/child/npapi/plugin_stream.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -14 lines 0 comments Download
M content/child/npapi/plugin_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -7 lines 0 comments Download
M content/child/npapi/plugin_stream_url.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -1 line 0 comments Download
M content/child/npapi/plugin_stream_url.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +31 lines, -3 lines 0 comments Download
A content/child/npapi/plugin_url_fetcher.h View 1 2 3 4 5 6 7 8 1 chunk +80 lines, -0 lines 0 comments Download
A content/child/npapi/plugin_url_fetcher.cc View 1 2 3 4 5 6 7 8 1 chunk +188 lines, -0 lines 0 comments Download
M content/child/npapi/webplugin.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -12 lines 0 comments Download
M content/child/npapi/webplugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -2 lines 0 comments Download
M content/child/npapi/webplugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -4 lines 0 comments Download
M content/child/npapi/webplugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +25 lines, -4 lines 0 comments Download
M content/child/npapi/webplugin_delegate_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +72 lines, -54 lines 0 comments Download
M content/common/plugin_process_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/plugin/plugin_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +17 lines, -2 lines 0 comments Download
M content/plugin/webplugin_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +14 lines, -9 lines 0 comments Download
M content/plugin/webplugin_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -2 lines 1 comment Download
M content/renderer/npapi/webplugin_delegate_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +22 lines, -12 lines 0 comments Download
M content/renderer/npapi/webplugin_delegate_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +41 lines, -12 lines 0 comments Download
M content/renderer/npapi/webplugin_impl.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +25 lines, -29 lines 0 comments Download
M content/renderer/npapi/webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +50 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jam
7 years, 3 months ago (2013-09-10 06:08:06 UTC) #1
ananta
Looks good. Please add some comments about how FetchURL works starting from the plugin to ...
7 years, 3 months ago (2013-09-10 21:29:35 UTC) #2
jam
Thanks, I made this work for single-process mode and added comments in WebPluginImpl::HandleURLRequestInternal about how ...
7 years, 3 months ago (2013-09-11 01:24:37 UTC) #3
jam
+jschuh for IPC files Justin: in plugin_messages.h I added two new IPCs (PluginMsg_FetchURL and PluginHostMsg_CheckIfRunInsecureContent). ...
7 years, 3 months ago (2013-09-11 02:29:58 UTC) #4
jschuh
ipc security lgtm. just moving message plumbing.
7 years, 3 months ago (2013-09-11 17:34:30 UTC) #5
ananta
https://codereview.chromium.org/23503043/diff/199001/content/plugin/webplugin_proxy.cc File content/plugin/webplugin_proxy.cc (right): https://codereview.chromium.org/23503043/diff/199001/content/plugin/webplugin_proxy.cc#newcode151 content/plugin/webplugin_proxy.cc:151: Remove
7 years, 3 months ago (2013-09-11 18:18:09 UTC) #6
ananta
7 years, 3 months ago (2013-09-11 18:18:15 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698