Index: third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h b/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h |
index ba696d11f440bc4c8a593d0f3622e2d1c033b608..f84cfe5d4f0818e25c3d4fb5335a9386998dc5b9 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h |
@@ -32,6 +32,7 @@ |
#define BindingSecurity_h |
#include "core/CoreExport.h" |
+#include "core/dom/ExecutionContext.h" |
#include "wtf/Allocator.h" |
#include <v8.h> |
@@ -72,7 +73,7 @@ public: |
static bool shouldAllowAccessTo(v8::Isolate*, const LocalDOMWindow* accessingWindow, const Location* target, ExceptionState&); |
static bool shouldAllowAccessTo(v8::Isolate*, const LocalDOMWindow* accessingWindow, const Location* target, SecurityReportingOption); |
// MainThreadWorkletGlobalScope |
- static bool shouldAllowAccessTo(v8::Isolate*, const LocalDOMWindow* accessingWindow, const MainThreadWorkletGlobalScope* target, SecurityReportingOption); |
+ static bool shouldAllowAccessTo(v8::Isolate*, const v8::Local<v8::Context>& calling, const ExecutionContext* callingExecutionContext, const MainThreadWorkletGlobalScope* target, SecurityReportingOption); |
// Prefer to use the previous overloads instead of falling back to using |
// Frame*. |
static bool shouldAllowAccessToFrame(v8::Isolate*, const LocalDOMWindow* accessingWindow, const Frame* target, SecurityReportingOption); // OBSOLETE |
@@ -90,6 +91,8 @@ public: |
// Node |
static bool shouldAllowAccessTo(v8::Isolate*, const LocalDOMWindow* accessingWindow, const Node* target, ExceptionState&); |
static bool shouldAllowAccessTo(v8::Isolate*, const LocalDOMWindow* accessingWindow, const Node* target, SecurityReportingOption); |
+ |
+ static bool callingContextCanAccessContext(v8::Isolate*, const v8::Local<v8::Context>& calling, const v8::Local<v8::Context>& target, SecurityReportingOption); |
}; |
} // namespace blink |