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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class ConsoleMessage; | 43 class ConsoleMessage; |
44 class ConsoleMessageStorage; | 44 class ConsoleMessageStorage; |
45 class DocumentLoader; | 45 class DocumentLoader; |
46 class LocalDOMWindow; | 46 class LocalDOMWindow; |
47 class LocalFrame; | 47 class LocalFrame; |
48 class InspectorConsoleMessage; | 48 class InspectorConsoleMessage; |
49 class InspectorFrontend; | 49 class InspectorFrontend; |
50 class InjectedScriptManager; | 50 class InjectedScriptManager; |
51 class InspectorTimelineAgent; | 51 class InspectorTimelineAgent; |
52 class InspectorTracingAgent; | |
53 class InstrumentingAgents; | 52 class InstrumentingAgents; |
54 class ResourceError; | 53 class ResourceError; |
55 class ResourceLoader; | 54 class ResourceLoader; |
56 class ResourceResponse; | 55 class ResourceResponse; |
57 class ScriptArguments; | 56 class ScriptArguments; |
58 class ScriptCallStack; | 57 class ScriptCallStack; |
59 class ScriptProfile; | 58 class ScriptProfile; |
60 class ThreadableLoaderClient; | 59 class ThreadableLoaderClient; |
61 class WorkerGlobalScopeProxy; | 60 class WorkerGlobalScopeProxy; |
62 class XMLHttpRequest; | 61 class XMLHttpRequest; |
63 | 62 |
64 typedef String ErrorString; | 63 typedef String ErrorString; |
65 | 64 |
66 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>,
public InspectorBackendDispatcher::ConsoleCommandHandler { | 65 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>,
public InspectorBackendDispatcher::ConsoleCommandHandler { |
67 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); | 66 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); |
68 public: | 67 public: |
69 InspectorConsoleAgent(InspectorTimelineAgent*, InspectorTracingAgent*, Injec
tedScriptManager*); | 68 InspectorConsoleAgent(InspectorTimelineAgent*, InjectedScriptManager*); |
70 virtual ~InspectorConsoleAgent(); | 69 virtual ~InspectorConsoleAgent(); |
71 virtual void trace(Visitor*) OVERRIDE; | 70 virtual void trace(Visitor*) OVERRIDE; |
72 | 71 |
73 virtual void init() OVERRIDE; | 72 virtual void init() OVERRIDE; |
74 virtual void enable(ErrorString*) OVERRIDE FINAL; | 73 virtual void enable(ErrorString*) OVERRIDE FINAL; |
75 virtual void disable(ErrorString*) OVERRIDE FINAL; | 74 virtual void disable(ErrorString*) OVERRIDE FINAL; |
76 virtual void clearMessages(ErrorString*) OVERRIDE; | 75 virtual void clearMessages(ErrorString*) OVERRIDE; |
77 bool enabled() { return m_enabled; } | 76 bool enabled() { return m_enabled; } |
78 | 77 |
79 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; | 78 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; |
(...skipping 18 matching lines...) Expand all Loading... |
98 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; | 97 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; |
99 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
OVERRIDE; | 98 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
OVERRIDE; |
100 | 99 |
101 virtual bool isWorkerAgent() = 0; | 100 virtual bool isWorkerAgent() = 0; |
102 | 101 |
103 protected: | 102 protected: |
104 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); | 103 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); |
105 virtual ConsoleMessageStorage* messageStorage() = 0; | 104 virtual ConsoleMessageStorage* messageStorage() = 0; |
106 | 105 |
107 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; | 106 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; |
108 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | |
109 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 107 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
110 InspectorFrontend::Console* m_frontend; | 108 InspectorFrontend::Console* m_frontend; |
111 bool m_enabled; | 109 bool m_enabled; |
112 private: | 110 private: |
113 static int s_enabledAgentCount; | 111 static int s_enabledAgentCount; |
114 }; | 112 }; |
115 | 113 |
116 } // namespace blink | 114 } // namespace blink |
117 | 115 |
118 | 116 |
119 #endif // !defined(InspectorConsoleAgent_h) | 117 #endif // !defined(InspectorConsoleAgent_h) |
OLD | NEW |