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