diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-29 10:46:47 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-02 12:02:10 +0000 |
commit | 99677208ff3b216fdfec551fbe548da5520cd6fb (patch) | |
tree | 476a4865c10320249360e859d8fdd3e01833b03a /chromium/content/browser/client_hints/client_hints.h | |
parent | c30a6232df03e1efbd9f3b226777b07e087a1122 (diff) | |
download | qtwebengine-chromium-99677208ff3b216fdfec551fbe548da5520cd6fb.tar.gz |
BASELINE: Update Chromium to 86.0.4240.124
Change-Id: Ide0ff151e94cd665ae6521a446995d34a9d1d644
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/content/browser/client_hints/client_hints.h')
-rw-r--r-- | chromium/content/browser/client_hints/client_hints.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/chromium/content/browser/client_hints/client_hints.h b/chromium/content/browser/client_hints/client_hints.h index e9344bbb141..c3c981b985a 100644 --- a/chromium/content/browser/client_hints/client_hints.h +++ b/chromium/content/browser/client_hints/client_hints.h @@ -47,13 +47,29 @@ CONTENT_EXPORT void AddNavigationRequestClientHintsHeaders( bool is_ua_override_on, FrameTreeNode*); -CONTENT_EXPORT void PersistAcceptCHAfterNagivationRequestRedirect( +// Parses incoming client hints and persists them as appropriate. Returns hints +// that were accepted as enabled even if they are not going to be persisted. The +// distinction is relevant in legacy case where feature policy is off and there +// is no valid Accept-CH-Lifetime, where the header still applies locally within +// frame. +CONTENT_EXPORT base::Optional<std::vector<network::mojom::WebClientHintsType>> +ParseAndPersistAcceptCHForNagivation( const GURL& url, const ::network::mojom::ParsedHeadersPtr& headers, BrowserContext* context, ClientHintsControllerDelegate* delegate, FrameTreeNode*); +// Looks up which client hints the renderer should be told to enable +// (after subjecting them to feature policy). +// +// Note that this is based on the top-level frame, and not necessarily the +// frame being committed. +CONTENT_EXPORT std::vector<::network::mojom::WebClientHintsType> +LookupAcceptCHForCommit(const GURL& url, + ClientHintsControllerDelegate* delegate, + FrameTreeNode* frame_tree_node); + } // namespace content #endif // CONTENT_BROWSER_CLIENT_HINTS_CLIENT_HINTS_H_ |