| 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 "platform/inspector_protocol/Allocator.h" | 8 #include "platform/inspector_protocol/Allocator.h" |
| 9 #include "wtf/PassOwnPtr.h" | 9 #include "wtf/PassOwnPtr.h" |
| 10 #include <v8.h> | 10 #include <v8.h> |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class JavaScriptCallFrame; | 14 class JavaScriptCallFrame; |
| 15 class V8DebuggerClient; | 15 class V8DebuggerClient; |
| 16 | 16 |
| 17 class V8JavaScriptCallFrame { | 17 class V8JavaScriptCallFrame { |
| 18 public: | 18 public: |
| 19 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); | 19 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); |
| 20 static v8::Local<v8::Object> wrap(v8::Local<v8::FunctionTemplate> constructo
rTemplate, v8::Local<v8::Context>, PassOwnPtr<JavaScriptCallFrame>); | 20 static v8::Local<v8::Object> wrap(V8DebuggerClient*, v8::Local<v8::FunctionT
emplate> constructorTemplate, v8::Local<v8::Context>, PassOwnPtr<JavaScriptCallF
rame>); |
| 21 static JavaScriptCallFrame* unwrap(v8::Local<v8::Context>, v8::Local<v8::Obj
ect>); | 21 static JavaScriptCallFrame* unwrap(v8::Local<v8::Context>, v8::Local<v8::Obj
ect>); |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 } // namespace blink | 24 } // namespace blink |
| 25 | 25 |
| 26 #endif // V8JavaScriptCallFrame_h | 26 #endif // V8JavaScriptCallFrame_h |
| OLD | NEW |