commit | f8a7e529d9e501a6f43a4cfdd09916a6e8ee4102 | [log] [tgz] |
---|---|---|
author | Arthur Sonzogni <arthursonzogni@chromium.org> | Fri Jan 11 14:30:14 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 11 14:30:14 2019 |
tree | c9354a6aa747a1a9a8ea8da41b038ef091502ff3 | |
parent | af147bac17333be77c9dbb5869ec244d942729ce [diff] |
Modify headers from the NavigationHandle. In content/public, there is two ways to act on a new navigation: 1) The "new" ones that are NavigationHandle based. Users of the API needs to implement either a WebContentsObserver or a NavigationThrottle. Then, they can act on the NavigationHandle. 2) The "legacy" ones where you implement the ContentBrowserClient: ContentBrowserClient::NavigationRequestStarted() ContentBrowserClient::NavigationRequestRedirected() The latter are used to modify request headers and load flags. The goal is to remove 2) and keep only 1) This CL is making able to modify headers from the NavigationHandle. Following CL will deprecate and then remove 2). Bug: 919432 Change-Id: I4db812d4cf1df2f67cf8bf97dca410009a1a3046 Reviewed-on: https://chromium-review.googlesource.com/c/1392949 Reviewed-by: Camille Lamy <clamy@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#621997}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .