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 17 matching lines...) Expand all Loading... |
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 PageDebuggerAgent_h | 31 #ifndef PageDebuggerAgent_h |
32 #define PageDebuggerAgent_h | 32 #define PageDebuggerAgent_h |
33 | 33 |
34 #include "bindings/core/v8/PageScriptDebugServer.h" | 34 #include "bindings/core/v8/PageScriptDebugServer.h" |
35 #include "core/inspector/InspectorDebuggerAgent.h" | 35 #include "core/inspector/InspectorDebuggerAgent.h" |
36 #include "core/inspector/InspectorOverlay.h" | 36 #include "core/inspector/InspectorOverlay.h" |
37 | 37 |
| 38 using blink::TypeBuilder::Debugger::ExceptionDetails; |
| 39 using blink::TypeBuilder::Debugger::ScriptId; |
| 40 using blink::TypeBuilder::Runtime::RemoteObject; |
| 41 |
38 namespace blink { | 42 namespace blink { |
39 | 43 |
40 class DocumentLoader; | 44 class DocumentLoader; |
41 class InspectorPageAgent; | 45 class InspectorPageAgent; |
42 class PageScriptDebugServer; | 46 class PageScriptDebugServer; |
43 | 47 |
44 class PageDebuggerAgent final | 48 class PageDebuggerAgent final |
45 : public InspectorDebuggerAgent | 49 : public InspectorDebuggerAgent |
46 , public InspectorOverlay::Listener { | 50 , public InspectorOverlay::Listener { |
47 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 51 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
(...skipping 12 matching lines...) Expand all Loading... |
60 void didClearDocumentOfWindowObject(LocalFrame*); | 64 void didClearDocumentOfWindowObject(LocalFrame*); |
61 void didCommitLoadForLocalFrame(LocalFrame*) override; | 65 void didCommitLoadForLocalFrame(LocalFrame*) override; |
62 | 66 |
63 protected: | 67 protected: |
64 void enable() override; | 68 void enable() override; |
65 void disable() override; | 69 void disable() override; |
66 | 70 |
67 private: | 71 private: |
68 void startListeningScriptDebugServer() override; | 72 void startListeningScriptDebugServer() override; |
69 void stopListeningScriptDebugServer() override; | 73 void stopListeningScriptDebugServer() override; |
70 PageScriptDebugServer& scriptDebugServer() override; | 74 ScriptDebugServer& scriptDebugServer() override; |
71 void muteConsole() override; | 75 void muteConsole() override; |
72 void unmuteConsole() override; | 76 void unmuteConsole() override; |
73 | 77 |
74 // InspectorOverlay::Listener implementation. | 78 // InspectorOverlay::Listener implementation. |
75 void overlayResumed() override; | 79 void overlayResumed() override; |
76 void overlaySteppedOver() override; | 80 void overlaySteppedOver() override; |
77 | 81 |
78 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; | 82 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; |
79 bool canExecuteScripts() const; | 83 bool canExecuteScripts() const; |
80 | 84 |
81 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*, int debuggerId); | 85 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*, int debuggerId); |
82 RawPtrWillBeMember<PageScriptDebugServer> m_pageScriptDebugServer; | 86 RawPtrWillBeMember<PageScriptDebugServer> m_pageScriptDebugServer; |
83 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 87 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
84 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 88 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
85 int m_debuggerId; | 89 int m_debuggerId; |
86 HashMap<String, String> m_compiledScriptURLs; | 90 HashMap<String, String> m_compiledScriptURLs; |
87 }; | 91 }; |
88 | 92 |
89 } // namespace blink | 93 } // namespace blink |
90 | 94 |
91 | 95 |
92 #endif // !defined(PageDebuggerAgent_h) | 96 #endif // !defined(PageDebuggerAgent_h) |
OLD | NEW |