OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "bindings/core/v8/WrapperCreationSecurityCheck.h" | 5 #include "platform/bindings/WrapperCreationSecurityCheck.h" |
6 | 6 |
7 #include "bindings/core/v8/WrapperTypeInfo.h" | 7 #include "platform/bindings/WrapperTypeInfo.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 WrapperCreationSecurityCheck::SecurityCheckFunction | 11 WrapperCreationSecurityCheck::SecurityCheckFunction |
12 WrapperCreationSecurityCheck::security_check_ = nullptr; | 12 WrapperCreationSecurityCheck::security_check_ = nullptr; |
13 WrapperCreationSecurityCheck::RethrowExceptionFunction | 13 WrapperCreationSecurityCheck::RethrowExceptionFunction |
14 WrapperCreationSecurityCheck::rethrow_exception_ = nullptr; | 14 WrapperCreationSecurityCheck::rethrow_exception_ = nullptr; |
15 | 15 |
16 void WrapperCreationSecurityCheck::SetSecurityCheckFunction( | 16 void WrapperCreationSecurityCheck::SetSecurityCheckFunction( |
17 SecurityCheckFunction func) { | 17 SecurityCheckFunction func) { |
(...skipping 14 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 void WrapperCreationSecurityCheck::RethrowCrossContextException( | 34 void WrapperCreationSecurityCheck::RethrowCrossContextException( |
35 v8::Local<v8::Context> creation_context, | 35 v8::Local<v8::Context> creation_context, |
36 const WrapperTypeInfo* type, | 36 const WrapperTypeInfo* type, |
37 v8::Local<v8::Value> cross_context_exception) { | 37 v8::Local<v8::Value> cross_context_exception) { |
38 (*rethrow_exception_)(creation_context, type, cross_context_exception); | 38 (*rethrow_exception_)(creation_context, type, cross_context_exception); |
39 } | 39 } |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
OLD | NEW |