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 PerIsolateDebuggerClient_h | 5 #ifndef PerIsolateDebuggerClient_h |
6 #define PerIsolateDebuggerClient_h | 6 #define PerIsolateDebuggerClient_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptDebugServer.h" | 8 #include "bindings/core/v8/ScriptDebugServer.h" |
| 9 #include "platform/heap/Handle.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class PerIsolateDebuggerClient : public ScriptDebugServer::Client { | 13 class PerIsolateDebuggerClient : public ScriptDebugServer::Client { |
13 WTF_MAKE_NONCOPYABLE(PerIsolateDebuggerClient); | 14 WTF_MAKE_NONCOPYABLE(PerIsolateDebuggerClient); |
14 public: | 15 public: |
15 PerIsolateDebuggerClient(v8::Isolate*, PassOwnPtr<ScriptDebugServer>); | 16 PerIsolateDebuggerClient(v8::Isolate*, PassOwnPtrWillBeRawPtr<ScriptDebugSer
ver>); |
16 ~PerIsolateDebuggerClient() override; | 17 ~PerIsolateDebuggerClient() override; |
17 v8::Local<v8::Object> compileDebuggerScript() override; | 18 v8::Local<v8::Object> compileDebuggerScript() override; |
18 ScriptDebugServer* scriptDebugServer() const { return m_scriptDebugServer.ge
t(); } | 19 ScriptDebugServer* scriptDebugServer() const { return m_scriptDebugServer.ge
t(); } |
| 20 |
| 21 DECLARE_VIRTUAL_TRACE(); |
| 22 |
19 private: | 23 private: |
20 v8::Isolate* m_isolate; | 24 v8::Isolate* m_isolate; |
21 OwnPtr<ScriptDebugServer> m_scriptDebugServer; | 25 OwnPtrWillBeMember<ScriptDebugServer> m_scriptDebugServer; |
22 }; | 26 }; |
23 | 27 |
24 } // namespace blink | 28 } // namespace blink |
25 | 29 |
26 | 30 |
27 #endif // !defined(PerIsolateDebuggerClient_h) | 31 #endif // !defined(PerIsolateDebuggerClient_h) |
OLD | NEW |