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

Side by Side Diff: third_party/WebKit/Source/platform/bindings/WrapperCreationSecurityCheck.cpp

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698