Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp b/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp
deleted file mode 100644
index a47f565bf9066a9a8c5960e1057a07fdb1e8ed62..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "bindings/core/v8/WrapperCreationSecurityCheck.h"
-
-#include "bindings/core/v8/WrapperTypeInfo.h"
-
-namespace blink {
-
-WrapperCreationSecurityCheck::SecurityCheckFunction
- WrapperCreationSecurityCheck::security_check_ = nullptr;
-WrapperCreationSecurityCheck::RethrowExceptionFunction
- WrapperCreationSecurityCheck::rethrow_exception_ = nullptr;
-
-void WrapperCreationSecurityCheck::SetSecurityCheckFunction(
- SecurityCheckFunction func) {
- DCHECK(!security_check_);
- security_check_ = func;
-}
-
-void WrapperCreationSecurityCheck::SetRethrowExceptionFunction(
- RethrowExceptionFunction func) {
- DCHECK(!rethrow_exception_);
- rethrow_exception_ = func;
-}
-
-bool WrapperCreationSecurityCheck::VerifyContextAccess(
- v8::Local<v8::Context> creation_context,
- const WrapperTypeInfo* type) {
- return (*security_check_)(creation_context, type);
-}
-
-void WrapperCreationSecurityCheck::RethrowCrossContextException(
- v8::Local<v8::Context> creation_context,
- const WrapperTypeInfo* type,
- v8::Local<v8::Value> cross_context_exception) {
- (*rethrow_exception_)(creation_context, type, cross_context_exception);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698