diff options
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.h | 13 |
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: |