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

Issue 1667163002: Add methods to NavigationHandle to allow refactoring webNavigation to use it. (Closed)

Created:
4 years, 10 months ago by nasko
Modified:
4 years, 10 months ago
Reviewers:
Charlie Reis, clamy
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add methods to NavigationHandle to allow refactoring webNavigation to use it. The webNavigation API is currently using WebContentsObserver APIs based on RenderFrameHost. Both Site Isolation and PlzNavigate are changing how navigation behaves and the latter requires the observers to move to use the NavigationHandle API. However, the webNavigation code requires functionality which isn't currently present and this CL adds that. The refactoring of webNavigation to use the methods added in this CL is in https://codereview.chromium.org/1670673003. BUG=532666, 584493 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/918f1d4c00f6bb2f757e80af118f1785bd333ecf Cr-Commit-Position: refs/heads/master@{#374478}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fixes based on Charlie's review. #

Patch Set 3 : Add the srcdoc test file and exclude the test from PlzNavigate tests. #

Total comments: 7

Patch Set 4 : Fixes based on Camille's review. #

Messages

Total messages: 23 (9 generated)
nasko
Hey Charlie and Camille, This CL contains the changes I need to make to NavigationHandle ...
4 years, 10 months ago (2016-02-04 18:22:33 UTC) #3
Charlie Reis
Glad to see this API expanding. A few quick thoughts as you update the compile ...
4 years, 10 months ago (2016-02-04 20:46:04 UTC) #4
nasko
I don't have a separate bug for NavigationHandle itself. I filed one for the webNavigaion ...
4 years, 10 months ago (2016-02-04 23:37:00 UTC) #6
Charlie Reis
Thanks. Looks good apart from the failing test! https://codereview.chromium.org/1667163002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1667163002/diff/1/content/browser/frame_host/navigation_request.cc#newcode231 content/browser/frame_host/navigation_request.cc:231: // ...
4 years, 10 months ago (2016-02-05 18:09:41 UTC) #7
nasko
https://codereview.chromium.org/1667163002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1667163002/diff/1/content/browser/frame_host/navigation_request.cc#newcode231 content/browser/frame_host/navigation_request.cc:231: // proper values are specified for is_synchronous and is_srcdoc. ...
4 years, 10 months ago (2016-02-05 21:40:21 UTC) #8
Charlie Reis
Thanks, LGTM.
4 years, 10 months ago (2016-02-06 00:21:39 UTC) #9
clamy
Thanks! A few questions below. https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_handle_impl.h#newcode236 content/browser/frame_host/navigation_handle_impl.h:236: bool is_synchronous_; Can is_synchronous_ ...
4 years, 10 months ago (2016-02-08 12:54:58 UTC) #10
nasko
https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_handle_impl.h#newcode236 content/browser/frame_host/navigation_handle_impl.h:236: bool is_synchronous_; On 2016/02/08 12:54:58, clamy wrote: > Can ...
4 years, 10 months ago (2016-02-08 16:58:55 UTC) #11
clamy
Thanks! Lgtm. https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1667163002/diff/40001/content/browser/frame_host/navigation_request.cc#newcode234 content/browser/frame_host/navigation_request.cc:234: false, // is_synchronous On 2016/02/08 16:58:55, nasko ...
4 years, 10 months ago (2016-02-09 10:45:25 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667163002/60001
4 years, 10 months ago (2016-02-09 14:53:09 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-09 16:23:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667163002/60001
4 years, 10 months ago (2016-02-09 20:09:24 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-09 21:49:18 UTC) #21
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 21:51:26 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/918f1d4c00f6bb2f757e80af118f1785bd333ecf
Cr-Commit-Position: refs/heads/master@{#374478}

Powered by Google App Engine
This is Rietveld 408576698