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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 ~PageDebuggerAgent() override; | 56 ~PageDebuggerAgent() override; |
57 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
58 | 58 |
59 void enable(ErrorString*) final; | 59 void enable(ErrorString*) final; |
60 void restore() final; | 60 void restore() final; |
61 void compileScript(ErrorString*, const String& expression, const String& sou
rceURL, bool persistScript, const int* executionContextId, TypeBuilder::OptOutpu
t<TypeBuilder::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDeta
ils>&) override; | 61 void compileScript(ErrorString*, const String& expression, const String& sou
rceURL, bool persistScript, const int* executionContextId, TypeBuilder::OptOutpu
t<TypeBuilder::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDeta
ils>&) override; |
62 void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const i
nt* executionContextId, const String* objectGroup, const bool* doNotPauseOnExcep
tionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<
TypeBuilder::Debugger::ExceptionDetails>&) override; | 62 void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const i
nt* executionContextId, const String* objectGroup, const bool* doNotPauseOnExcep
tionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<
TypeBuilder::Debugger::ExceptionDetails>&) override; |
63 | 63 |
64 void didStartProvisionalLoad(LocalFrame*); | 64 void didStartProvisionalLoad(LocalFrame*); |
65 void didClearDocumentOfWindowObject(LocalFrame*); | 65 void didClearDocumentOfWindowObject(LocalFrame*); |
| 66 void didCommitLoadForLocalFrame(LocalFrame*) override; |
66 | 67 |
67 protected: | 68 protected: |
68 void enable() override; | 69 void enable() override; |
69 void disable() override; | 70 void disable() override; |
70 | 71 |
71 private: | 72 private: |
72 void startListeningV8Debugger() override; | 73 void startListeningV8Debugger() override; |
73 void stopListeningV8Debugger() override; | 74 void stopListeningV8Debugger() override; |
74 void muteConsole() override; | 75 void muteConsole() override; |
75 void unmuteConsole() override; | 76 void unmuteConsole() override; |
76 | 77 |
77 // InspectorOverlay::Listener implementation. | 78 // InspectorOverlay::Listener implementation. |
78 void overlayResumed() override; | 79 void overlayResumed() override; |
79 void overlaySteppedOver() override; | 80 void overlaySteppedOver() override; |
80 | 81 |
81 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; | 82 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; |
82 bool canExecuteScripts() const; | 83 bool canExecuteScripts() const; |
83 | 84 |
84 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa
nager*, InspectorOverlay*); | 85 PageDebuggerAgent(MainThreadDebugger*, InspectorPageAgent*, InjectedScriptMa
nager*, InspectorOverlay*); |
85 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger; | 86 RawPtrWillBeMember<MainThreadDebugger> m_mainThreadDebugger; |
86 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 87 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
87 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 88 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
88 HashMap<String, String> m_compiledScriptURLs; | 89 HashMap<String, String> m_compiledScriptURLs; |
89 }; | 90 }; |
90 | 91 |
91 } // namespace blink | 92 } // namespace blink |
92 | 93 |
93 | 94 |
94 #endif // !defined(PageDebuggerAgent_h) | 95 #endif // !defined(PageDebuggerAgent_h) |
OLD | NEW |