| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8JavaScriptCallFrame_h | 5 #ifndef V8JavaScriptCallFrame_h |
| 6 #define V8JavaScriptCallFrame_h | 6 #define V8JavaScriptCallFrame_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" |
| 8 #include "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
| 9 #include <v8.h> | 10 #include <v8.h> |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class JavaScriptCallFrame; | 14 class JavaScriptCallFrame; |
| 14 | 15 |
| 15 class V8JavaScriptCallFrame { | 16 class V8JavaScriptCallFrame { |
| 17 STATIC_ONLY(V8JavaScriptCallFrame); |
| 16 public: | 18 public: |
| 17 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); | 19 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); |
| 18 static v8::Local<v8::Object> wrap(v8::Local<v8::FunctionTemplate> constructo
rTemplate, v8::Local<v8::Context>, PassRefPtr<JavaScriptCallFrame>); | 20 static v8::Local<v8::Object> wrap(v8::Local<v8::FunctionTemplate> constructo
rTemplate, v8::Local<v8::Context>, PassRefPtr<JavaScriptCallFrame>); |
| 19 static JavaScriptCallFrame* unwrap(v8::Local<v8::Object>); | 21 static JavaScriptCallFrame* unwrap(v8::Local<v8::Object>); |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 } // namespace blink | 24 } // namespace blink |
| 23 | 25 |
| 24 #endif // V8JavaScriptCallFrame_h | 26 #endif // V8JavaScriptCallFrame_h |
| OLD | NEW |