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

Issue 105553005: Make PepperWebPlugin not use RenderViews. (Closed)

Created:
7 years ago by jam
Modified:
7 years ago
Reviewers:
Yoyo Zhou, yzshen1, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : sync #

Patch Set 5 : fix new uses of renamed variable after sync #

Total comments: 8

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -295 lines) Patch
M chrome/browser/extensions/api/page_capture/page_capture_api.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/page_capture/page_capture_api.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 chunks +21 lines, -4 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser_delegate_impl.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_broker_message_filter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_extensions_common_message_filter.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_extensions_common_message_filter.cc View 1 2 3 9 chunks +20 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc View 1 2 3 6 chunks +12 lines, -16 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_isolated_file_system_message_filter.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc View 1 2 3 11 chunks +32 lines, -41 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc View 1 2 3 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_talk_host.cc View 1 2 3 6 chunks +19 lines, -19 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/extension_frame_helper.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/extension_frame_helper.cc View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_io_host.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_ref_host.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_flash_file_message_filter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_network_monitor_host.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_network_proxy_host.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_network_proxy_host.cc View 1 2 3 3 chunks +13 lines, -16 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_socket_utils.h View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_socket_utils.cc View 1 2 3 3 chunks +7 lines, -18 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc View 1 2 3 8 chunks +12 lines, -12 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/pepper_renderer_instance_data.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/pepper_renderer_instance_data.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/browser_ppapi_host.h View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/host_dispatcher_wrapper.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_browser_connection.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_browser_connection.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.cc View 1 2 3 4 chunks +4 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M extensions/browser/extension_function.h View 1 2 3 4 5 4 chunks +14 lines, -4 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 2 3 4 5 7 chunks +38 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
Yoyo: please look at files with extensions in the path Yuzhu: please look at files ...
7 years ago (2013-12-19 19:09:58 UTC) #1
Yoyo Zhou
extensions LGTM https://chromiumcodereview.appspot.com/105553005/diff/40001/chrome/browser/extensions/extension_function_dispatcher.h File chrome/browser/extensions/extension_function_dispatcher.h (right): https://chromiumcodereview.appspot.com/105553005/diff/40001/chrome/browser/extensions/extension_function_dispatcher.h#newcode108 chrome/browser/extensions/extension_function_dispatcher.h:108: // The response is sent to the ...
7 years ago (2013-12-20 00:28:37 UTC) #2
yzshen1
Pepper stuff LGTM Thanks! https://codereview.chromium.org/105553005/diff/40001/chrome/browser/extensions/extension_function_dispatcher.h File chrome/browser/extensions/extension_function_dispatcher.h (right): https://codereview.chromium.org/105553005/diff/40001/chrome/browser/extensions/extension_function_dispatcher.h#newcode111 chrome/browser/extensions/extension_function_dispatcher.h:111: content::RenderViewHost* render_view_host); Now the two ...
7 years ago (2013-12-20 01:52:48 UTC) #3
nasko
LGTM with a few nits. https://codereview.chromium.org/105553005/diff/80001/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): https://codereview.chromium.org/105553005/diff/80001/chrome/browser/extensions/extension_function_dispatcher.cc#newcode329 chrome/browser/extensions/extension_function_dispatcher.cc:329: RenderViewHost* render_view_host, nit: prefix ...
7 years ago (2013-12-20 14:53:53 UTC) #4
jam
7 years ago (2013-12-20 17:00:48 UTC) #5
https://codereview.chromium.org/105553005/diff/40001/chrome/browser/extension...
File chrome/browser/extensions/extension_function_dispatcher.h (right):

https://codereview.chromium.org/105553005/diff/40001/chrome/browser/extension...
chrome/browser/extensions/extension_function_dispatcher.h:108: // The response
is sent to the corresponding render view in an
On 2013/12/20 00:28:37, Yoyo Zhou wrote:
> Does this comment need updating?

Done.

https://codereview.chromium.org/105553005/diff/40001/chrome/browser/extension...
chrome/browser/extensions/extension_function_dispatcher.h:111:
content::RenderViewHost* render_view_host);
On 2013/12/20 01:52:49, yzshen1 wrote:
> Now the two Dispatch.*() methods don't use the same Render.*Host parameter. I
> guess it is because you don't want to touch all other extension-related code
in
> this same CL?

exactly

> 
> If there is a plan to also change that part, maybe we could add a TODO.

added

https://codereview.chromium.org/105553005/diff/40001/content/common/pepper_re...
File content/common/pepper_renderer_instance_data.cc (right):

https://codereview.chromium.org/105553005/diff/40001/content/common/pepper_re...
content/common/pepper_renderer_instance_data.cc:16: int render_frame,
On 2013/12/20 01:52:49, yzshen1 wrote:
> nit: it is nice to use the same name in the declaration and definition.

yeah I agree. It looked like in this case it was done like that to make it clear
which variable is the member one vs the parameter

https://codereview.chromium.org/105553005/diff/40001/extensions/browser/exten...
File extensions/browser/extension_function.h (right):

https://codereview.chromium.org/105553005/diff/40001/extensions/browser/exten...
extensions/browser/extension_function.h:341: // The RenderFrameHost we will send
responses too.
On 2013/12/20 00:28:37, Yoyo Zhou wrote:
> nit: to (here and 338)

Done.

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/extension...
File chrome/browser/extensions/extension_function_dispatcher.cc (right):

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/extension...
chrome/browser/extensions/extension_function_dispatcher.cc:329: RenderViewHost*
render_view_host,
On 2013/12/20 14:53:54, nasko wrote:
> nit: prefix RVH with content, so it is consistent with RFH below.

the background is when I started content refactoring I put "using content::" foo
in a lot of places. I now regret that, and I'm trying not to do that with
RenderFrameHost.

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/renderer_...
File chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc (right):

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/renderer_...
chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc:72: void
FetchMonitorFromWidget() {
On 2013/12/20 14:53:54, nasko wrote:
> nit: The method name doesn't match its functionality now.

i've clarified in RenderFrameHost::GetNativeView that it returns the widget's
native view

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/renderer_...
File
chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
(right):

https://codereview.chromium.org/105553005/diff/80001/chrome/browser/renderer_...
chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:171:
LOG(WARNING) << "RenderFrameHost is not alive.";
On 2013/12/20 14:53:54, nasko wrote:
> nit: Technically, it doesn't exist. It can exist and not be alive, but this is
> not the check here.

I had just left the same terminology that was used before..

https://codereview.chromium.org/105553005/diff/80001/extensions/browser/exten...
File extensions/browser/extension_function.cc (right):

https://codereview.chromium.org/105553005/diff/80001/extensions/browser/exten...
extensions/browser/extension_function.cc:189: render_frame_host_ =
render_frame_host;
On 2013/12/20 14:53:54, nasko wrote:
> nit: Should we DCHECK somewhere that one or the other is set, but not both?

Done.

Powered by Google App Engine
This is Rietveld 408576698