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

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

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.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.h b/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.h
index 2a2545445e9f8e8d09eece9fefdfaba19e15719f..80c400159d4c43162d2a926a7818cbec4794f721 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.h
@@ -2,45 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WrapperCreationSecurityCheck_h
-#define WrapperCreationSecurityCheck_h
-
-#include "core/CoreExport.h"
-#include "platform/wtf/Allocator.h"
-#include "v8/include/v8.h"
-
-namespace blink {
-
-struct WrapperTypeInfo;
-
-// This class holds pointers to functions that implement creation context access
-// and exception rethrowing logic required by V8WrapperInstantiationScope when
-// creating wrappers.
-class CORE_EXPORT WrapperCreationSecurityCheck {
- STATIC_ONLY(WrapperCreationSecurityCheck);
-
- public:
- using SecurityCheckFunction = bool (*)(v8::Local<v8::Context>,
- const WrapperTypeInfo*);
- using RethrowExceptionFunction = void (*)(v8::Local<v8::Context>,
- const WrapperTypeInfo*,
- v8::Local<v8::Value>);
-
- static void SetSecurityCheckFunction(SecurityCheckFunction);
- static void SetRethrowExceptionFunction(RethrowExceptionFunction);
-
- static bool VerifyContextAccess(v8::Local<v8::Context> creation_context,
- const WrapperTypeInfo*);
- static void RethrowCrossContextException(
- v8::Local<v8::Context> creation_context,
- const WrapperTypeInfo*,
- v8::Local<v8::Value> cross_context_exception);
-
- private:
- static SecurityCheckFunction security_check_;
- static RethrowExceptionFunction rethrow_exception_;
-};
-
-} // namespace blink
-
-#endif // WrapperCreationSecurityCheck_h
+// This file has been moved to platform/bindings/WrapperCreationSecurityCheck.h.
+// TODO(adithyas): Remove this file.
+#include "platform/bindings/WrapperCreationSecurityCheck.h"

Powered by Google App Engine
This is Rietveld 408576698