| 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 ScriptDebuggerBase_h | 5 #ifndef ScriptDebuggerBase_h |
| 6 #define ScriptDebuggerBase_h | 6 #define ScriptDebuggerBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/V8Debugger.h" | |
| 9 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/inspector/V8Debugger.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CORE_EXPORT ScriptDebuggerBase : public V8Debugger::Client { | 14 class CORE_EXPORT ScriptDebuggerBase : public V8Debugger::Client { |
| 15 WTF_MAKE_NONCOPYABLE(ScriptDebuggerBase); | 15 WTF_MAKE_NONCOPYABLE(ScriptDebuggerBase); |
| 16 public: | 16 public: |
| 17 ScriptDebuggerBase(v8::Isolate*, PassOwnPtrWillBeRawPtr<V8Debugger>); | 17 ScriptDebuggerBase(v8::Isolate*, PassOwnPtrWillBeRawPtr<V8Debugger>); |
| 18 ~ScriptDebuggerBase() override; | 18 ~ScriptDebuggerBase() override; |
| 19 v8::Local<v8::Object> compileDebuggerScript() override; | 19 v8::Local<v8::Object> compileDebuggerScript() override; |
| 20 V8Debugger* debugger() const { return m_debugger.get(); } | 20 V8Debugger* debugger() const { return m_debugger.get(); } |
| 21 | 21 |
| 22 DECLARE_VIRTUAL_TRACE(); | 22 DECLARE_VIRTUAL_TRACE(); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 v8::Isolate* m_isolate; | 25 v8::Isolate* m_isolate; |
| 26 OwnPtrWillBeMember<V8Debugger> m_debugger; | 26 OwnPtrWillBeMember<V8Debugger> m_debugger; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace blink | 29 } // namespace blink |
| 30 | 30 |
| 31 | 31 |
| 32 #endif // !defined(ScriptDebuggerBase_h) | 32 #endif // !defined(ScriptDebuggerBase_h) |
| OLD | NEW |