Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Issue 365563002: Update several WebContentsObserver loading callbacks to use RFH. (Closed)

Created:
6 years, 5 months ago by dcheng
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Update several WebContentsObserver loading callbacks to use RFH. This code runs in the browser process, so there's no need to pass around routing IDs for frames, since it can just use RFH directly. This also simplifies the callbacks by removing several parameters that are now redundant with RFH. This has the side effect of making it impossible for tests to supply 'impossible' data to WebContentsObserver callbacks. Tests for WebContentsObserver loading callbacks can use the new RenderFrameHostTester helper if they need to create subframe RenderFrameHosts. [email protected] [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281241

Patch Set 1 #

Patch Set 2 : Change everything #

Patch Set 3 : Oops #

Patch Set 4 : Add IsMainFrame #

Patch Set 5 : Revert IsMainFrame changes #

Patch Set 6 : Fix test issues and delete stale comment in NavigatorImpl #

Total comments: 1

Patch Set 7 : remove unneeded content:: #

Patch Set 8 : One more fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -421 lines) Patch
M chrome/browser/captive_portal/captive_portal_tab_helper.h View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper.cc View 1 4 3 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc View 1 2 3 20 chunks +56 lines, -76 lines 0 comments Download
M chrome/browser/chromeos/first_run/drive_first_run_controller.cc View 1 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_view.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 4 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/errorpage_browsertest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/web_auth_flow.h View 1 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/identity/web_auth_flow.cc View 1 4 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 4 6 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.h View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 4 4 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.h View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 4 3 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper_unittest.cc View 1 2 3 3 chunks +24 lines, -31 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 4 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 4 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 1 4 3 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/signin/signin_browsertest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_observer.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_observer.cc View 1 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 4 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/test/base/in_process_browser_test_browsertest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents_browsertest.cc View 1 2 4 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/web_contents_observer_android.h View 1 2 chunks +3 lines, -8 lines 0 comments Download
M content/browser/android/web_contents_observer_android.cc View 1 4 3 chunks +22 lines, -14 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 4 chunks +3 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 4 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 4 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 3 chunks +10 lines, -19 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M content/public/test/test_renderer_host.h View 1 2 3 4 5 6 7 2 chunks +26 lines, -2 lines 0 comments Download
M content/public/test/test_renderer_host.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/test_frame_navigation_observer.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M content/test/test_frame_navigation_observer.cc View 1 1 chunk +4 lines, -10 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 5 6 7 3 chunks +26 lines, -5 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 chunks +27 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dcheng
This updates three of the frame loading callbacks (DidStart, DidFail, and DidCommit). There are a ...
6 years, 5 months ago (2014-07-01 18:58:26 UTC) #1
jam
On 2014/07/01 18:58:26, dcheng (OOO) wrote: > This updates three of the frame loading callbacks ...
6 years, 5 months ago (2014-07-02 16:02:42 UTC) #2
dcheng
PTAL. I've removed IsMainFrame() but I'm still trying to understand the test failure from the ...
6 years, 5 months ago (2014-07-02 19:58:58 UTC) #3
dcheng
Update: I've also figured out why the test was failing. It looks like in the ...
6 years, 5 months ago (2014-07-02 21:53:22 UTC) #4
jam
lgtm https://codereview.chromium.org/365563002/diff/100001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/365563002/diff/100001/content/browser/site_per_process_browsertest.cc#newcode37 content/browser/site_per_process_browsertest.cc:37: content::RenderFrameHost* render_frame_host, nit: no "content::"
6 years, 5 months ago (2014-07-02 22:24:51 UTC) #5
dcheng
TBRing jochen@ for the changes outside of content.
6 years, 5 months ago (2014-07-03 05:48:20 UTC) #6
dcheng
The CQ bit was checked by [email protected]
6 years, 5 months ago (2014-07-03 05:48:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/365563002/120001
6 years, 5 months ago (2014-07-03 05:49:26 UTC) #8
dcheng
The CQ bit was checked by [email protected]
6 years, 5 months ago (2014-07-03 09:13:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/365563002/140001
6 years, 5 months ago (2014-07-03 09:14:11 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 12:17:54 UTC) #11
Message was sent while issue was closed.
Change committed as 281241

Powered by Google App Engine
This is Rietveld 408576698