| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class Page; | 42 class Page; |
| 43 class PageScriptDebugServer; | 43 class PageScriptDebugServer; |
| 44 | 44 |
| 45 class PageDebuggerAgent : public InspectorDebuggerAgent { | 45 class PageDebuggerAgent : public InspectorDebuggerAgent { |
| 46 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 46 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
| 47 WTF_MAKE_FAST_ALLOCATED; | 47 WTF_MAKE_FAST_ALLOCATED; |
| 48 public: | 48 public: |
| 49 static PassOwnPtr<PageDebuggerAgent> create(InstrumentingAgents*, InspectorS
tate*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*); | 49 static PassOwnPtr<PageDebuggerAgent> create(InstrumentingAgents*, InspectorS
tate*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*); |
| 50 virtual ~PageDebuggerAgent(); | 50 virtual ~PageDebuggerAgent(); |
| 51 | 51 |
| 52 virtual void enable(ErrorString*); | 52 void didClearMainFrameWindowObject(); |
| 53 virtual void disable(ErrorString*); | |
| 54 | 53 |
| 55 void didClearMainFrameWindowObject(); | 54 protected: |
| 55 virtual void enable(); |
| 56 virtual void disable(); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 virtual void startListeningScriptDebugServer(); | 59 virtual void startListeningScriptDebugServer(); |
| 59 virtual void stopListeningScriptDebugServer(); | 60 virtual void stopListeningScriptDebugServer(); |
| 60 virtual PageScriptDebugServer& scriptDebugServer(); | 61 virtual PageScriptDebugServer& scriptDebugServer(); |
| 61 virtual void muteConsole(); | 62 virtual void muteConsole(); |
| 62 virtual void unmuteConsole(); | 63 virtual void unmuteConsole(); |
| 63 | 64 |
| 64 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId); | 65 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId); |
| 65 virtual void setOverlayMessage(ErrorString*, const String*); | 66 virtual void setOverlayMessage(ErrorString*, const String*); |
| 66 | 67 |
| 67 PageDebuggerAgent(InstrumentingAgents*, InspectorState*, InspectorPageAgent*
, InjectedScriptManager*, InspectorOverlay*); | 68 PageDebuggerAgent(InstrumentingAgents*, InspectorState*, InspectorPageAgent*
, InjectedScriptManager*, InspectorOverlay*); |
| 68 InspectorPageAgent* m_pageAgent; | 69 InspectorPageAgent* m_pageAgent; |
| 69 InspectorOverlay* m_overlay; | 70 InspectorOverlay* m_overlay; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace WebCore | 73 } // namespace WebCore |
| 73 | 74 |
| 74 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) | 75 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) |
| 75 | 76 |
| 76 #endif // !defined(PageDebuggerAgent_h) | 77 #endif // !defined(PageDebuggerAgent_h) |
| OLD | NEW |