diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-16 11:45:35 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 08:59:23 +0000 |
commit | 552906b0f222c5d5dd11b9fd73829d510980461a (patch) | |
tree | 3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/third_party/blink/renderer/core/loader/preload_helper.h | |
parent | 1b05827804eaf047779b597718c03e7d38344261 (diff) | |
download | qtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz |
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/loader/preload_helper.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/loader/preload_helper.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/core/loader/preload_helper.h b/chromium/third_party/blink/renderer/core/loader/preload_helper.h index 79522b5f6fc..d06899c602f 100644 --- a/chromium/third_party/blink/renderer/core/loader/preload_helper.h +++ b/chromium/third_party/blink/renderer/core/loader/preload_helper.h @@ -6,7 +6,6 @@ #define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_PRELOAD_HELPER_H_ #include "base/optional.h" -#include "third_party/blink/renderer/core/page/viewport_description.h" #include "third_party/blink/renderer/platform/loader/fetch/resource.h" namespace blink { @@ -16,6 +15,7 @@ class Document; class LocalFrame; class SingleModuleClient; struct LinkLoadParameters; +struct ViewportDescription; // PreloadHelper is a helper class for preload, module preload, prefetch, // DNS prefetch, and preconnect triggered by <link> elements and "Link" HTTP @@ -41,12 +41,10 @@ class PreloadHelper final { Document*, // can be nullptr CanLoadResources, MediaPreloadPolicy, - const base::Optional<ViewportDescription>&, + const ViewportDescription*, // can be nullptr std::unique_ptr<AlternateSignedExchangeResourceInfo>, - base::Optional<base::UnguessableToken>); - static Resource* StartPreload(ResourceType, - FetchParameters&, - ResourceFetcher*); + const base::UnguessableToken* /* can be nullptr */); + static Resource* StartPreload(ResourceType, FetchParameters&, Document&); // Currently only used for UseCounter. enum LinkCaller { @@ -67,11 +65,11 @@ class PreloadHelper final { Document&, const KURL& base_url, LinkCaller, - const base::Optional<ViewportDescription>&, + const ViewportDescription*, ParserDisposition); static void ModulePreloadIfNeeded(const LinkLoadParameters&, Document&, - const base::Optional<ViewportDescription>&, + const ViewportDescription*, SingleModuleClient*); static base::Optional<ResourceType> GetResourceTypeFromAsAttribute( |