summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-26 13:57:00 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-11-02 11:31:01 +0000
commit1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch)
tree8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h
parent21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff)
downloadqtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h')
-rw-r--r--chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h b/chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h
index 2490a1f5c54..a7e2f9da312 100644
--- a/chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h
+++ b/chromium/third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h
@@ -10,6 +10,7 @@
#include "base/unguessable_token.h"
#include "services/network/public/mojom/fetch_api.mojom-blink-forward.h"
#include "services/network/public/mojom/web_sandbox_flags.mojom-blink-forward.h"
+#include "third_party/blink/public/mojom/loader/code_cache.mojom-forward.h"
#include "third_party/blink/public/mojom/v8_cache_options.mojom-blink.h"
#include "third_party/blink/public/platform/cross_variant_mojo_util.h"
#include "third_party/blink/public/platform/web_url_request.h"
@@ -89,6 +90,7 @@ class CORE_EXPORT WorkerOrWorkletGlobalScope : public EventTargetWithInlineData,
// UseCounter
void CountUse(WebFeature feature) final;
+ void CountDeprecation(WebFeature feature) final;
// May return nullptr if this global scope is not threaded (i.e.,
// WorkletGlobalScope for the main thread) or after Dispose() is called.
@@ -107,8 +109,7 @@ class CORE_EXPORT WorkerOrWorkletGlobalScope : public EventTargetWithInlineData,
// Returns the resource fetcher for subresources (a.k.a. inside settings
// resource fetcher). See core/workers/README.md for details.
- ResourceFetcher* Fetcher() const override;
- ResourceFetcher* EnsureFetcher();
+ ResourceFetcher* Fetcher() override;
// ResourceFetcher for off-the-main-thread worker top-level script fetching,
// corresponding to "outside" fetch client's settings object.
@@ -151,7 +152,7 @@ class CORE_EXPORT WorkerOrWorkletGlobalScope : public EventTargetWithInlineData,
void SetSandboxFlags(network::mojom::blink::WebSandboxFlags mask);
- void SetDefersLoadingForResourceFetchers(WebURLLoader::DeferType defers);
+ void SetDefersLoadingForResourceFetchers(LoaderFreezeMode);
virtual int GetOutstandingThrottledLimit() const;
@@ -159,6 +160,12 @@ class CORE_EXPORT WorkerOrWorkletGlobalScope : public EventTargetWithInlineData,
// PlzServiceWorker ship.
virtual bool IsInitialized() const = 0;
+ // TODO(crbug/964467): Currently all workers fetch cached code but only
+ // services workers use them. Dedicated / Shared workers don't use the cached
+ // code since we don't create a CachedMetadataHandler. We need to fix this by
+ // creating a cached metadta handler for all workers.
+ virtual blink::mojom::CodeCacheHost* GetCodeCacheHost() { return nullptr; }
+
Deprecation& GetDeprecation() { return deprecation_; }
protected: