| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "content/public/browser/client_hints.h" |
| #include "content/browser/client_hints/client_hints.h" |
| |
| namespace content { |
| |
| void AddClientHintsHeadersToPrefetchNavigation( |
| const url::Origin& origin, |
| net::HttpRequestHeaders* headers, |
| BrowserContext* context, |
| ClientHintsControllerDelegate* delegate, |
| bool is_ua_override_on) { |
| // TODO(crbug.com/422193319): Specify the correct FrameTreeNode for DevTools |
| // to support DevTools-initiated UA overrides. |
| AddPrefetchNavigationRequestClientHintsHeaders( |
| origin, headers, context, delegate, is_ua_override_on, |
| /*ftn_for_devtools_override=*/nullptr); |
| } |
| |
| } // namespace content |