| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 : public InspectorDebuggerAgent | 45 : public InspectorDebuggerAgent |
| 46 , public InspectorOverlay::Listener { | 46 , public InspectorOverlay::Listener { |
| 47 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 47 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
| 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PageDebuggerAgent); | 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PageDebuggerAgent); |
| 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent); |
| 50 public: | 50 public: |
| 51 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(PageScriptDebugServe
r*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*, int debugger
Id); | 51 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(PageScriptDebugServe
r*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*, int debugger
Id); |
| 52 ~PageDebuggerAgent() override; | 52 ~PageDebuggerAgent() override; |
| 53 DECLARE_VIRTUAL_TRACE(); | 53 DECLARE_VIRTUAL_TRACE(); |
| 54 | 54 |
| 55 void enable(ErrorString*) final; |
| 55 void didStartProvisionalLoad(LocalFrame*); | 56 void didStartProvisionalLoad(LocalFrame*); |
| 56 void didClearDocumentOfWindowObject(LocalFrame*); | 57 void didClearDocumentOfWindowObject(LocalFrame*); |
| 57 void didCommitLoadForLocalFrame(LocalFrame*) override; | 58 void didCommitLoadForLocalFrame(LocalFrame*) override; |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 void enable() override; | 61 void enable() override; |
| 61 void disable() override; | 62 void disable() override; |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 void startListeningScriptDebugServer() override; | 65 void startListeningScriptDebugServer() override; |
| 65 void stopListeningScriptDebugServer() override; | 66 void stopListeningScriptDebugServer() override; |
| 66 PageScriptDebugServer& scriptDebugServer() override; | 67 PageScriptDebugServer& scriptDebugServer() override; |
| 67 void muteConsole() override; | 68 void muteConsole() override; |
| 68 void unmuteConsole() override; | 69 void unmuteConsole() override; |
| 69 | 70 |
| 70 // InspectorOverlay::Listener implementation. | 71 // InspectorOverlay::Listener implementation. |
| 71 void overlayResumed() override; | 72 void overlayResumed() override; |
| 72 void overlaySteppedOver() override; | 73 void overlaySteppedOver() override; |
| 73 | 74 |
| 74 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; | 75 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte
xtId) override; |
| 76 bool canExecuteScripts() const; |
| 75 | 77 |
| 76 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*, int debuggerId); | 78 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*, int debuggerId); |
| 77 RawPtrWillBeMember<PageScriptDebugServer> m_pageScriptDebugServer; | 79 RawPtrWillBeMember<PageScriptDebugServer> m_pageScriptDebugServer; |
| 78 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 80 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 79 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 81 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
| 80 int m_debuggerId; | 82 int m_debuggerId; |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace blink | 85 } // namespace blink |
| 84 | 86 |
| 85 | 87 |
| 86 #endif // !defined(PageDebuggerAgent_h) | 88 #endif // !defined(PageDebuggerAgent_h) |
| OLD | NEW |