OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WorkerDebuggerAgent_h | 31 #ifndef WorkerDebuggerAgent_h |
32 #define WorkerDebuggerAgent_h | 32 #define WorkerDebuggerAgent_h |
33 | 33 |
34 #include "bindings/core/v8/WorkerScriptDebugServer.h" | 34 #include "bindings/core/v8/WorkerScriptDebugServer.h" |
35 #include "core/inspector/InspectorDebuggerAgent.h" | 35 #include "core/inspector/InspectorDebuggerAgent.h" |
| 36 #include "public/platform/WebThread.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 class WorkerGlobalScope; | 40 class WorkerGlobalScope; |
40 class WorkerDebuggerAgent; | 41 class WorkerDebuggerAgent; |
41 | 42 |
42 class WorkerDebuggerAgent final : public InspectorDebuggerAgent { | 43 class WorkerDebuggerAgent final : public InspectorDebuggerAgent { |
43 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); | 44 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); |
44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); | 45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); |
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent); |
46 public: | 47 public: |
47 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerScriptDebugS
erver*, WorkerGlobalScope*, InjectedScriptManager*); | 48 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerScriptDebugS
erver*, WorkerGlobalScope*, InjectedScriptManager*, WebThread::TaskObserver*); |
48 ~WorkerDebuggerAgent() override; | 49 ~WorkerDebuggerAgent() override; |
49 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
50 | 51 |
51 void interruptAndDispatchInspectorCommands(); | 52 void interruptAndDispatchInspectorCommands(); |
52 | 53 |
53 private: | 54 private: |
54 | 55 |
55 WorkerDebuggerAgent(WorkerScriptDebugServer*, WorkerGlobalScope*, InjectedSc
riptManager*); | 56 WorkerDebuggerAgent(WorkerScriptDebugServer*, WorkerGlobalScope*, InjectedSc
riptManager*, WebThread::TaskObserver*); |
56 | 57 |
57 void startListeningScriptDebugServer() override; | 58 void startListeningScriptDebugServer() override; |
58 void stopListeningScriptDebugServer() override; | 59 void stopListeningScriptDebugServer() override; |
59 ScriptDebugServer& scriptDebugServer() override; | 60 ScriptDebugServer& scriptDebugServer() override; |
60 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; | 61 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; |
61 void muteConsole() override; | 62 void muteConsole() override; |
62 void unmuteConsole() override; | 63 void unmuteConsole() override; |
63 | 64 |
64 WorkerScriptDebugServer* m_scriptDebugServer; | 65 WorkerScriptDebugServer* m_scriptDebugServer; |
65 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; | 66 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; |
| 67 WebThread::TaskObserver* m_taskObserver; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace blink | 70 } // namespace blink |
69 | 71 |
70 #endif // !defined(WorkerDebuggerAgent_h) | 72 #endif // !defined(WorkerDebuggerAgent_h) |
OLD | NEW |