| 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 PageConsoleAgent_h | 31 #ifndef PageConsoleAgent_h |
| 32 #define PageConsoleAgent_h | 32 #define PageConsoleAgent_h |
| 33 | 33 |
| 34 #include "InspectorConsoleAgent.h" | 34 #include "InspectorConsoleAgent.h" |
| 35 #include <wtf/PassOwnPtr.h> | 35 #include <wtf/PassOwnPtr.h> |
| 36 | 36 |
| 37 #if ENABLE(INSPECTOR) | |
| 38 | 37 |
| 39 namespace WebCore { | 38 namespace WebCore { |
| 40 | 39 |
| 41 class InspectorAgent; | 40 class InspectorAgent; |
| 42 class InspectorDOMAgent; | 41 class InspectorDOMAgent; |
| 43 | 42 |
| 44 class PageConsoleAgent : public InspectorConsoleAgent { | 43 class PageConsoleAgent : public InspectorConsoleAgent { |
| 45 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); | 44 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); |
| 46 public: | 45 public: |
| 47 static PassOwnPtr<PageConsoleAgent> create(InstrumentingAgents* instrumentin
gAgents, InspectorAgent* agent, InspectorCompositeState* state, InjectedScriptMa
nager* injectedScriptManager, InspectorDOMAgent* domAgent) | 46 static PassOwnPtr<PageConsoleAgent> create(InstrumentingAgents* instrumentin
gAgents, InspectorAgent* agent, InspectorCompositeState* state, InjectedScriptMa
nager* injectedScriptManager, InspectorDOMAgent* domAgent) |
| 48 { | 47 { |
| 49 return adoptPtr(new PageConsoleAgent(instrumentingAgents, agent, state,
injectedScriptManager, domAgent)); | 48 return adoptPtr(new PageConsoleAgent(instrumentingAgents, agent, state,
injectedScriptManager, domAgent)); |
| 50 } | 49 } |
| 51 virtual ~PageConsoleAgent(); | 50 virtual ~PageConsoleAgent(); |
| 52 | 51 |
| 53 virtual bool isWorkerAgent() OVERRIDE { return false; } | 52 virtual bool isWorkerAgent() OVERRIDE { return false; } |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 PageConsoleAgent(InstrumentingAgents*, InspectorAgent*, InspectorCompositeSt
ate*, InjectedScriptManager*, InspectorDOMAgent*); | 55 PageConsoleAgent(InstrumentingAgents*, InspectorAgent*, InspectorCompositeSt
ate*, InjectedScriptManager*, InspectorDOMAgent*); |
| 57 virtual void clearMessages(ErrorString*); | 56 virtual void clearMessages(ErrorString*); |
| 58 virtual void addInspectedNode(ErrorString*, int nodeId); | 57 virtual void addInspectedNode(ErrorString*, int nodeId); |
| 59 virtual bool developerExtrasEnabled(); | 58 virtual bool developerExtrasEnabled(); |
| 60 | 59 |
| 61 InspectorAgent* m_inspectorAgent; | 60 InspectorAgent* m_inspectorAgent; |
| 62 InspectorDOMAgent* m_inspectorDOMAgent; | 61 InspectorDOMAgent* m_inspectorDOMAgent; |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace WebCore | 64 } // namespace WebCore |
| 66 | 65 |
| 67 #endif // ENABLE(INSPECTOR) | |
| 68 | 66 |
| 69 #endif // !defined(PageConsoleAgent_h) | 67 #endif // !defined(PageConsoleAgent_h) |
| OLD | NEW |