| Index: third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| index 2490a4203b93809943d83def632b1cf0c4d3e51e..ce633be0a580827b8aaba06e06079b6feb0a4676 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| @@ -53,6 +53,7 @@ class ExecutionContextTask;
|
| class LocalDOMWindow;
|
| class PublicURLManager;
|
| class SecurityOrigin;
|
| +class ScriptState;
|
| enum class TaskType : unsigned;
|
|
|
| enum ReasonForCallingCanExecuteScripts {
|
| @@ -75,6 +76,8 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
|
| kWebCryptoSecureContextCheck
|
| };
|
|
|
| + static ExecutionContext* From(const ScriptState*);
|
| +
|
| virtual bool IsDocument() const { return false; }
|
| virtual bool IsWorkerOrWorkletGlobalScope() const { return false; }
|
| virtual bool IsWorkerGlobalScope() const { return false; }
|
|
|