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

Issue 253013002: Pass RenderFrameHost to WebContentObservers' message handlers (Closed)

Created:
6 years, 7 months ago by mnaganov (inactive)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, miu+watch_chromium.org, benm (inactive), site-isolation-reviews_chromium.org, xhwang
Visibility:
Public.

Description

Pass RenderFrameHost to WebContentObservers' message handlers This patch enables WebContentsObserver::OnMessageReceived to receive a reference to RenderFrameHost that received the message. This allows passing of JavaBridgeDispatcherHostManager ownership from WebContentsImpl to ContentViewCore and removing of some redundant initialization code in JavaBridgeDispatcherHostManager, fixing a long-standing TODO. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268939

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments (hopefully) addressed #

Patch Set 3 : Fix typo in RenderHostTracker #

Total comments: 4

Patch Set 4 : Comments addressed, rebased, compilation issue fixed #

Patch Set 5 : Fixed failing browser_tests, rebased #

Total comments: 2

Patch Set 6 : Fixed Android tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -109 lines) Patch
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/guest_view/web_view/plugin_permission_helper.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/plugin_permission_helper.cc View 1 2 3 4 1 chunk +15 lines, -5 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 3 4 2 chunks +14 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 chunks +25 lines, -23 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h View 1 2 3 3 chunks +10 lines, -12 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc View 1 2 3 4 5 5 chunks +25 lines, -27 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 chunks +0 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 5 chunks +9 lines, -14 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mnaganov (inactive)
Hi Jochen, Can you please take a look, whether this change to WebContentsObserver makes sense ...
6 years, 7 months ago (2014-04-28 19:44:34 UTC) #1
Charlie Reis
Please have jam@ review this. We've had an extensive thread on this topic on site-isolation-dev@chromium.org.
6 years, 7 months ago (2014-04-28 19:48:30 UTC) #2
mnaganov (inactive)
Thanks, Charlie! I'll have a look at the list. John, does this change makes sense, ...
6 years, 7 months ago (2014-04-28 19:55:12 UTC) #3
Charlie Reis
On 2014/04/28 19:55:12, Mikhail Naganov (Cr) wrote: > Thanks, Charlie! I'll have a look at ...
6 years, 7 months ago (2014-04-28 21:37:39 UTC) #4
ncarter (slow)
On 2014/04/28 21:37:39, Charlie Reis wrote: > On 2014/04/28 19:55:12, Mikhail Naganov (Cr) wrote: > ...
6 years, 7 months ago (2014-04-28 22:04:50 UTC) #5
jam
I would prefer that this lands in one change which does the following: -does not ...
6 years, 7 months ago (2014-04-29 00:33:50 UTC) #6
mnaganov (inactive)
On 2014/04/29 00:33:50, jam wrote: > I would prefer that this lands in one change ...
6 years, 7 months ago (2014-04-29 15:11:15 UTC) #7
ncarter (slow)
https://codereview.chromium.org/253013002/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc (right): https://codereview.chromium.org/253013002/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc#newcode124 content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc:124: render_frame_host_message_source_ = render_frame_host; Here's an idea that might mean ...
6 years, 7 months ago (2014-04-29 20:50:44 UTC) #8
mnaganov (inactive)
This is what I have done: Now we have virtual bool WebContentsObserver::OnMessageReceived(const IPC::Message& message, RenderFrameHost* ...
6 years, 7 months ago (2014-05-01 13:57:38 UTC) #9
jam
lgtm, thanks! we can do the macros in a followup when we need them and ...
6 years, 7 months ago (2014-05-02 19:41:21 UTC) #10
mnaganov (inactive)
Thank you, John! https://codereview.chromium.org/253013002/diff/30014/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h File content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h (right): https://codereview.chromium.org/253013002/diff/30014/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h#newcode57 content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h:57: On 2014/05/02 19:41:22, jam wrote: > ...
6 years, 7 months ago (2014-05-06 09:06:46 UTC) #11
mnaganov (inactive)
benm@: Can you please take a look at the changes for Java Bridge? I'm addressing ...
6 years, 7 months ago (2014-05-06 09:08:42 UTC) #12
Yoyo Zhou
extension_function.cc LGTM
6 years, 7 months ago (2014-05-06 18:23:20 UTC) #13
mnaganov (inactive)
Some tests were failing due to usage of RenderFrame-specific messages. Moved the respective handlers into ...
6 years, 7 months ago (2014-05-07 10:53:19 UTC) #14
Bernhard Bauer
c/b/p LGTM
6 years, 7 months ago (2014-05-07 12:50:48 UTC) #15
Fady Samuel
guest_view lgtm
6 years, 7 months ago (2014-05-07 12:53:35 UTC) #16
benm (inactive)
lgtm thanks Mikhail! https://codereview.chromium.org/253013002/diff/70001/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc (right): https://codereview.chromium.org/253013002/diff/70001/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc#newcode30 content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc:30: DCHECK(retained_object_set); should this be retained_object_set_ (i.e. ...
6 years, 7 months ago (2014-05-07 13:51:42 UTC) #17
mnaganov (inactive)
https://codereview.chromium.org/253013002/diff/70001/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc (right): https://codereview.chromium.org/253013002/diff/70001/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc#newcode30 content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc:30: DCHECK(retained_object_set); On 2014/05/07 13:51:43, benm wrote: > should this ...
6 years, 7 months ago (2014-05-07 15:12:34 UTC) #18
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 7 months ago (2014-05-07 15:13:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/253013002/90001
6 years, 7 months ago (2014-05-07 15:19:23 UTC) #20
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 20:52:26 UTC) #21
Message was sent while issue was closed.
Change committed as 268939

Powered by Google App Engine
This is Rietveld 408576698