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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)

Created:
4 years, 3 months ago by clamy
Modified:
4 years, 2 months ago
Reviewers:
Devlin, sky, nasko
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org, chromium-apps-reviews_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: support the WebRequest API This CL introduces support for the WebRequest API when browser-side navigation is enabled. It introduces a struct NavigationUIData that the extension code can initialize on the UI thread at the beginning of the navigation. Later the WebRequest code accesses it on the IO thread and uses it to get a properly initialized FrameData. BUG=575224 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/1e5574e9aa99ff49474912f87c1bf2b3924bd24d Cr-Commit-Position: refs/heads/master@{#421846}

Patch Set 1 #

Patch Set 2 : PlzNavigate: support the WebRequest API #

Patch Set 3 : PlzNavigate: support the WebRequest API #

Patch Set 4 : PlzNavigate: support the WebRequest API #

Patch Set 5 : PlzNavigate: support the WebRequest API #

Total comments: 10

Patch Set 6 : Rebase #

Patch Set 7 : Addressed comments #

Patch Set 8 : Added missing comment #

Total comments: 12

Patch Set 9 : Rebase #

Patch Set 10 : Addressed comments + removed test filter changes #

Total comments: 8

Patch Set 11 : Rebase #

Patch Set 12 : Addressed comments + changes to NavigationHandleImpl following 2364943002 #

Total comments: 3

Patch Set 13 : Rebase + addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -68 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_extensions_network_delegate.cc View 1 2 3 4 9 chunks +34 lines, -14 lines 0 comments Download
A chrome/browser/renderer_host/chrome_navigation_ui_data.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/chrome_navigation_ui_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +46 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_url_loader_factory.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
A content/public/browser/navigation_ui_data.h View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/test_navigation_url_loader_factory.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_navigation_url_loader_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.h View 10 chunks +14 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 1 2 3 4 5 6 7 8 20 chunks +62 lines, -20 lines 0 comments Download
M extensions/browser/api/web_request/web_request_event_details.h View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_event_details.cc View 1 2 3 4 5 6 2 chunks +9 lines, -7 lines 0 comments Download
A extensions/browser/extension_navigation_ui_data.h View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -0 lines 0 comments Download
A extensions/browser/extension_navigation_ui_data.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_network_delegate.cc View 1 6 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 59 (43 generated)
clamy
@rdcronin, nasko: PTAL. This is the CL to support the WebRequest API in PlzNavigate. There ...
4 years, 3 months ago (2016-09-16 13:48:44 UTC) #20
Devlin
A few quick comments - I'll take another look soon. https://codereview.chromium.org/2335133003/diff/80001/chrome/browser/renderer_host/chrome_navigation_ui_data.h File chrome/browser/renderer_host/chrome_navigation_ui_data.h (right): https://codereview.chromium.org/2335133003/diff/80001/chrome/browser/renderer_host/chrome_navigation_ui_data.h#newcode25 ...
4 years, 3 months ago (2016-09-16 16:17:27 UTC) #21
clamy
Thanks! https://codereview.chromium.org/2335133003/diff/80001/chrome/browser/renderer_host/chrome_navigation_ui_data.h File chrome/browser/renderer_host/chrome_navigation_ui_data.h (right): https://codereview.chromium.org/2335133003/diff/80001/chrome/browser/renderer_host/chrome_navigation_ui_data.h#newcode25 chrome/browser/renderer_host/chrome_navigation_ui_data.h:25: // Any On 2016/09/16 16:17:26, Devlin wrote: > ...
4 years, 3 months ago (2016-09-19 15:10:04 UTC) #24
Devlin
extensions stuff lgtm. I didn't look too closely at the content/ area; assuming Nasko will ...
4 years, 3 months ago (2016-09-21 23:02:28 UTC) #31
nasko
Overall LGTM, some minor nits. https://codereview.chromium.org/2335133003/diff/140001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2335133003/diff/140001/content/browser/frame_host/navigation_handle_impl.h#newcode338 content/browser/frame_host/navigation_handle_impl.h:338: std::unique_ptr<NavigationUIData> navigation_ui_data_; nit: Let's ...
4 years, 3 months ago (2016-09-22 18:32:51 UTC) #32
clamy
@nasko,rdcronin: Thanks! @sky: PTAL at the changes in chrome/ https://codereview.chromium.org/2335133003/diff/140001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2335133003/diff/140001/content/browser/frame_host/navigation_handle_impl.h#newcode338 content/browser/frame_host/navigation_handle_impl.h:338: ...
4 years, 2 months ago (2016-09-26 15:37:51 UTC) #36
sky
https://codereview.chromium.org/2335133003/diff/180001/chrome/browser/renderer_host/chrome_navigation_ui_data.cc File chrome/browser/renderer_host/chrome_navigation_ui_data.cc (right): https://codereview.chromium.org/2335133003/diff/180001/chrome/browser/renderer_host/chrome_navigation_ui_data.cc#newcode18 chrome/browser/renderer_host/chrome_navigation_ui_data.cc:18: int tab_id = session_tab_helper ? session_tab_helper->session_id().id() : -1; Is ...
4 years, 2 months ago (2016-09-26 16:45:48 UTC) #37
clamy
Thanks! @nasko: I have made a few changes in the content/ code due to https://codereview.chromium.org/2364943002/ ...
4 years, 2 months ago (2016-09-27 14:57:53 UTC) #42
sky
LGTM
4 years, 2 months ago (2016-09-27 16:33:31 UTC) #45
nasko
Still LGTM. https://codereview.chromium.org/2335133003/diff/220001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2335133003/diff/220001/content/browser/frame_host/navigation_handle_impl.cc#newcode387 content/browser/frame_host/navigation_handle_impl.cc:387: if (IsBrowserSideNavigationEnabled()) { nit: No need for ...
4 years, 2 months ago (2016-09-28 17:28:31 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2335133003/220001
4 years, 2 months ago (2016-09-28 17:29:16 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/136008) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 2 months ago (2016-09-28 17:33:03 UTC) #51
clamy
Thanks! https://codereview.chromium.org/2335133003/diff/220001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2335133003/diff/220001/content/browser/frame_host/navigation_handle_impl.cc#newcode387 content/browser/frame_host/navigation_handle_impl.cc:387: if (IsBrowserSideNavigationEnabled()) { On 2016/09/28 17:28:31, nasko (slow) ...
4 years, 2 months ago (2016-09-29 15:56:21 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2335133003/240001
4 years, 2 months ago (2016-09-29 15:57:01 UTC) #55
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-09-29 16:49:11 UTC) #57
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 16:52:46 UTC) #59
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1e5574e9aa99ff49474912f87c1bf2b3924bd24d
Cr-Commit-Position: refs/heads/master@{#421846}

Powered by Google App Engine
This is Rietveld 408576698