| 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 16 matching lines...) Expand all Loading... |
| 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 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 | 36 |
| 37 // This whole file will move to namespace inspector. |
| 38 namespace inspector { |
| 39 class InspectorHost; |
| 40 } |
| 41 |
| 37 namespace blink { | 42 namespace blink { |
| 38 | 43 |
| 39 class DocumentLoader; | 44 class DocumentLoader; |
| 45 class InspectorHost; |
| 40 class InspectorPageAgent; | 46 class InspectorPageAgent; |
| 41 class Page; | |
| 42 class PageScriptDebugServer; | 47 class PageScriptDebugServer; |
| 43 class ScriptSourceCode; | 48 class ScriptSourceCode; |
| 44 | 49 |
| 45 class PageDebuggerAgent final | 50 class PageDebuggerAgent final |
| 46 : public InspectorDebuggerAgent { | 51 : public InspectorDebuggerAgent { |
| 47 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 52 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
| 48 WTF_MAKE_FAST_ALLOCATED; | 53 WTF_MAKE_FAST_ALLOCATED; |
| 49 public: | 54 public: |
| 50 static PassOwnPtr<PageDebuggerAgent> create(PageScriptDebugServer*, Page*, I
njectedScriptManager*); | 55 static PassOwnPtr<PageDebuggerAgent> create(PageScriptDebugServer*, inspecto
r::InspectorHost*, InjectedScriptManager*); |
| 51 virtual ~PageDebuggerAgent(); | 56 virtual ~PageDebuggerAgent(); |
| 52 | 57 |
| 53 void didClearDocumentOfWindowObject(LocalFrame*); | 58 void didClearDocumentOfWindowObject(LocalFrame*); |
| 54 | 59 |
| 55 private: | 60 private: |
| 56 virtual void startListeningScriptDebugServer() override; | 61 virtual void startListeningScriptDebugServer() override; |
| 57 virtual void stopListeningScriptDebugServer() override; | 62 virtual void stopListeningScriptDebugServer() override; |
| 58 virtual PageScriptDebugServer& scriptDebugServer() override; | 63 virtual PageScriptDebugServer& scriptDebugServer() override; |
| 59 virtual void muteConsole() override; | 64 virtual void muteConsole() override; |
| 60 virtual void unmuteConsole() override; | 65 virtual void unmuteConsole() override; |
| 61 | 66 |
| 62 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; | 67 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; |
| 63 virtual void setOverlayMessage(ErrorString*, const String*) override; | 68 virtual void setOverlayMessage(ErrorString*, const String*) override; |
| 64 | 69 |
| 65 PageDebuggerAgent(PageScriptDebugServer*, Page*, InjectedScriptManager*); | 70 PageDebuggerAgent(PageScriptDebugServer*, inspector::InspectorHost*, Injecte
dScriptManager*); |
| 66 PageScriptDebugServer* m_pageScriptDebugServer; | 71 PageScriptDebugServer* m_pageScriptDebugServer; |
| 67 Page* m_page; | 72 inspector::InspectorHost* m_host; |
| 68 }; | 73 }; |
| 69 | 74 |
| 70 } // namespace blink | 75 } // namespace blink |
| 71 | 76 |
| 72 | 77 |
| 73 #endif // !defined(PageDebuggerAgent_h) | 78 #endif // !defined(PageDebuggerAgent_h) |
| OLD | NEW |