| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class DocumentLoader; | 40 class DocumentLoader; |
| 41 class InspectorOverlay; | 41 class InspectorOverlay; |
| 42 class InspectorPageAgent; | 42 class InspectorPageAgent; |
| 43 class Page; | 43 class Page; |
| 44 class PageScriptDebugServer; | 44 class PageScriptDebugServer; |
| 45 class ScriptSourceCode; | 45 class ScriptSourceCode; |
| 46 | 46 |
| 47 class PageDebuggerAgent FINAL | 47 class PageDebuggerAgent final |
| 48 : public InspectorDebuggerAgent | 48 : public InspectorDebuggerAgent |
| 49 , public InspectorOverlayHost::Listener { | 49 , public InspectorOverlayHost::Listener { |
| 50 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 50 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
| 51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PageDebuggerAgent); |
| 53 public: | 53 public: |
| 54 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(PageScriptDebugServe
r*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*); | 54 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(PageScriptDebugServe
r*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*); |
| 55 virtual ~PageDebuggerAgent(); | 55 virtual ~PageDebuggerAgent(); |
| 56 virtual void trace(Visitor*) OVERRIDE; | 56 virtual void trace(Visitor*) override; |
| 57 | 57 |
| 58 void didClearDocumentOfWindowObject(LocalFrame*); | 58 void didClearDocumentOfWindowObject(LocalFrame*); |
| 59 void didCommitLoad(LocalFrame*, DocumentLoader*); | 59 void didCommitLoad(LocalFrame*, DocumentLoader*); |
| 60 | 60 |
| 61 protected: | 61 protected: |
| 62 virtual void enable() OVERRIDE; | 62 virtual void enable() override; |
| 63 virtual void disable() OVERRIDE; | 63 virtual void disable() override; |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 virtual void startListeningScriptDebugServer() OVERRIDE; | 66 virtual void startListeningScriptDebugServer() override; |
| 67 virtual void stopListeningScriptDebugServer() OVERRIDE; | 67 virtual void stopListeningScriptDebugServer() override; |
| 68 virtual PageScriptDebugServer& scriptDebugServer() OVERRIDE; | 68 virtual PageScriptDebugServer& scriptDebugServer() override; |
| 69 virtual void muteConsole() OVERRIDE; | 69 virtual void muteConsole() override; |
| 70 virtual void unmuteConsole() OVERRIDE; | 70 virtual void unmuteConsole() override; |
| 71 | 71 |
| 72 // InspectorOverlayHost::Listener implementation. | 72 // InspectorOverlayHost::Listener implementation. |
| 73 virtual void overlayResumed() OVERRIDE; | 73 virtual void overlayResumed() override; |
| 74 virtual void overlaySteppedOver() OVERRIDE; | 74 virtual void overlaySteppedOver() override; |
| 75 | 75 |
| 76 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; | 76 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; |
| 77 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; | 77 virtual void setOverlayMessage(ErrorString*, const String*) override; |
| 78 | 78 |
| 79 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*); | 79 PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScrip
tManager*, InspectorOverlay*); |
| 80 // FIXME: Oilpan: Move PageScriptDebugServer to heap in follow-up CL. | 80 // FIXME: Oilpan: Move PageScriptDebugServer to heap in follow-up CL. |
| 81 PageScriptDebugServer* m_pageScriptDebugServer; | 81 PageScriptDebugServer* m_pageScriptDebugServer; |
| 82 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 82 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 83 InspectorOverlay* m_overlay; | 83 InspectorOverlay* m_overlay; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 | 88 |
| 89 #endif // !defined(PageDebuggerAgent_h) | 89 #endif // !defined(PageDebuggerAgent_h) |
| OLD | NEW |