-
Hiroki Nakagawa authored
For code simplification, this CL replaces WebPrerenderRelType with mojom::PrerenderRelType. Before this change, WebPrerenderRelType was represented as bit-field. This is because it was allowed to specify both "prerender"[1] and "next"[2] types at the same time in the link rel attribute like <link rel="prefetch next">. However, in that case, "prerender" is just prioritized[3], so it was unnecessary to keep both the types in the bit-field. Therefore this CL introduces the mojom::PrerenderRelType as enum instead of bit-field. This would make code simpler and more readable. [1] https://html.spec.whatwg.org/C/#link-type-prerender [2] https://html.spec.whatwg.org/C/#link-type-next [3] https://source.chromium.org/chromium/chromium/src/+/master:components/prerender/browser/prerender_manager.cc;l=177;drc=ee49bcdf8e3a7764fa22b8e9d1ec1d0c9332870f Bug: n/a Change-Id: Ida2957a659c7578930bdeac136c72ebc8cacb8b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409890Reviewed-by:
Ryan Sturm <ryansturm@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#807396}
80f9997d