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 20 matching lines...) Expand all Loading... |
31 #ifndef InstrumentingAgents_h | 31 #ifndef InstrumentingAgents_h |
32 #define InstrumentingAgents_h | 32 #define InstrumentingAgents_h |
33 | 33 |
34 #include <wtf/FastAllocBase.h> | 34 #include <wtf/FastAllocBase.h> |
35 #include <wtf/Noncopyable.h> | 35 #include <wtf/Noncopyable.h> |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class InspectorAgent; | 39 class InspectorAgent; |
40 class InspectorApplicationCacheAgent; | 40 class InspectorApplicationCacheAgent; |
41 class InspectorPageAgent; | |
42 class InspectorDOMDebuggerAgent; | |
43 class InspectorCSSAgent; | 41 class InspectorCSSAgent; |
| 42 class InspectorCanvasAgent; |
44 class InspectorConsoleAgent; | 43 class InspectorConsoleAgent; |
45 class InspectorDOMAgent; | 44 class InspectorDOMAgent; |
| 45 class InspectorDOMDebuggerAgent; |
46 class InspectorDOMStorageAgent; | 46 class InspectorDOMStorageAgent; |
47 class InspectorDatabaseAgent; | 47 class InspectorDatabaseAgent; |
48 class InspectorDebuggerAgent; | 48 class InspectorDebuggerAgent; |
49 class InspectorFileSystemAgent; | 49 class InspectorFileSystemAgent; |
| 50 class InspectorPageAgent; |
50 class InspectorProfilerAgent; | 51 class InspectorProfilerAgent; |
51 class InspectorResourceAgent; | 52 class InspectorResourceAgent; |
52 class InspectorRuntimeAgent; | 53 class InspectorRuntimeAgent; |
53 class InspectorTimelineAgent; | 54 class InspectorTimelineAgent; |
54 class InspectorWorkerAgent; | 55 class InspectorWorkerAgent; |
55 class InspectorWebGLAgent; | |
56 class Page; | 56 class Page; |
57 class PageRuntimeAgent; | 57 class PageRuntimeAgent; |
58 class WorkerContext; | 58 class WorkerContext; |
59 | 59 |
60 class InstrumentingAgents { | 60 class InstrumentingAgents { |
61 WTF_MAKE_NONCOPYABLE(InstrumentingAgents); | 61 WTF_MAKE_NONCOPYABLE(InstrumentingAgents); |
62 WTF_MAKE_FAST_ALLOCATED; | 62 WTF_MAKE_FAST_ALLOCATED; |
63 public: | 63 public: |
64 InstrumentingAgents() | 64 InstrumentingAgents() |
65 : m_inspectorAgent(0) | 65 : m_inspectorAgent(0) |
(...skipping 14 matching lines...) Expand all Loading... |
80 #endif | 80 #endif |
81 , m_inspectorApplicationCacheAgent(0) | 81 , m_inspectorApplicationCacheAgent(0) |
82 #if ENABLE(JAVASCRIPT_DEBUGGER) | 82 #if ENABLE(JAVASCRIPT_DEBUGGER) |
83 , m_inspectorDebuggerAgent(0) | 83 , m_inspectorDebuggerAgent(0) |
84 , m_inspectorDOMDebuggerAgent(0) | 84 , m_inspectorDOMDebuggerAgent(0) |
85 , m_inspectorProfilerAgent(0) | 85 , m_inspectorProfilerAgent(0) |
86 #endif | 86 #endif |
87 #if ENABLE(WORKERS) | 87 #if ENABLE(WORKERS) |
88 , m_inspectorWorkerAgent(0) | 88 , m_inspectorWorkerAgent(0) |
89 #endif | 89 #endif |
90 #if ENABLE(WEBGL) | 90 , m_inspectorCanvasAgent(0) |
91 , m_inspectorWebGLAgent(0) | |
92 #endif | |
93 { } | 91 { } |
94 ~InstrumentingAgents() { } | 92 ~InstrumentingAgents() { } |
95 | 93 |
96 InspectorAgent* inspectorAgent() const { return m_inspectorAgent; } | 94 InspectorAgent* inspectorAgent() const { return m_inspectorAgent; } |
97 void setInspectorAgent(InspectorAgent* agent) { m_inspectorAgent = agent; } | 95 void setInspectorAgent(InspectorAgent* agent) { m_inspectorAgent = agent; } |
98 | 96 |
99 InspectorPageAgent* inspectorPageAgent() const { return m_inspectorPageAgent
; } | 97 InspectorPageAgent* inspectorPageAgent() const { return m_inspectorPageAgent
; } |
100 void setInspectorPageAgent(InspectorPageAgent* agent) { m_inspectorPageAgent
= agent; } | 98 void setInspectorPageAgent(InspectorPageAgent* agent) { m_inspectorPageAgent
= agent; } |
101 | 99 |
102 InspectorCSSAgent* inspectorCSSAgent() const { return m_inspectorCSSAgent; } | 100 InspectorCSSAgent* inspectorCSSAgent() const { return m_inspectorCSSAgent; } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 143 |
146 InspectorProfilerAgent* inspectorProfilerAgent() const { return m_inspectorP
rofilerAgent; } | 144 InspectorProfilerAgent* inspectorProfilerAgent() const { return m_inspectorP
rofilerAgent; } |
147 void setInspectorProfilerAgent(InspectorProfilerAgent* agent) { m_inspectorP
rofilerAgent = agent; } | 145 void setInspectorProfilerAgent(InspectorProfilerAgent* agent) { m_inspectorP
rofilerAgent = agent; } |
148 #endif | 146 #endif |
149 | 147 |
150 #if ENABLE(WORKERS) | 148 #if ENABLE(WORKERS) |
151 InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorke
rAgent; } | 149 InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorke
rAgent; } |
152 void setInspectorWorkerAgent(InspectorWorkerAgent* agent) { m_inspectorWorke
rAgent = agent; } | 150 void setInspectorWorkerAgent(InspectorWorkerAgent* agent) { m_inspectorWorke
rAgent = agent; } |
153 #endif | 151 #endif |
154 | 152 |
155 #if ENABLE(WEBGL) | 153 InspectorCanvasAgent* inspectorCanvasAgent() const { return m_inspectorCanva
sAgent; } |
156 InspectorWebGLAgent* inspectorWebGLAgent() const { return m_inspectorWebGLAg
ent; } | 154 void setInspectorCanvasAgent(InspectorCanvasAgent* agent) { m_inspectorCanva
sAgent = agent; } |
157 void setInspectorWebGLAgent(InspectorWebGLAgent* agent) { m_inspectorWebGLAg
ent = agent; } | |
158 #endif | |
159 | 155 |
160 private: | 156 private: |
161 InspectorAgent* m_inspectorAgent; | 157 InspectorAgent* m_inspectorAgent; |
162 InspectorPageAgent* m_inspectorPageAgent; | 158 InspectorPageAgent* m_inspectorPageAgent; |
163 InspectorCSSAgent* m_inspectorCSSAgent; | 159 InspectorCSSAgent* m_inspectorCSSAgent; |
164 InspectorConsoleAgent* m_inspectorConsoleAgent; | 160 InspectorConsoleAgent* m_inspectorConsoleAgent; |
165 InspectorDOMAgent* m_inspectorDOMAgent; | 161 InspectorDOMAgent* m_inspectorDOMAgent; |
166 InspectorResourceAgent* m_inspectorResourceAgent; | 162 InspectorResourceAgent* m_inspectorResourceAgent; |
167 InspectorRuntimeAgent* m_inspectorRuntimeAgent; | 163 InspectorRuntimeAgent* m_inspectorRuntimeAgent; |
168 PageRuntimeAgent* m_pageRuntimeAgent; | 164 PageRuntimeAgent* m_pageRuntimeAgent; |
169 InspectorTimelineAgent* m_inspectorTimelineAgent; | 165 InspectorTimelineAgent* m_inspectorTimelineAgent; |
170 InspectorDOMStorageAgent* m_inspectorDOMStorageAgent; | 166 InspectorDOMStorageAgent* m_inspectorDOMStorageAgent; |
171 #if ENABLE(SQL_DATABASE) | 167 #if ENABLE(SQL_DATABASE) |
172 InspectorDatabaseAgent* m_inspectorDatabaseAgent; | 168 InspectorDatabaseAgent* m_inspectorDatabaseAgent; |
173 #endif | 169 #endif |
174 #if ENABLE(FILE_SYSTEM) | 170 #if ENABLE(FILE_SYSTEM) |
175 InspectorFileSystemAgent* m_inspectorFileSystemAgent; | 171 InspectorFileSystemAgent* m_inspectorFileSystemAgent; |
176 #endif | 172 #endif |
177 InspectorApplicationCacheAgent* m_inspectorApplicationCacheAgent; | 173 InspectorApplicationCacheAgent* m_inspectorApplicationCacheAgent; |
178 #if ENABLE(JAVASCRIPT_DEBUGGER) | 174 #if ENABLE(JAVASCRIPT_DEBUGGER) |
179 InspectorDebuggerAgent* m_inspectorDebuggerAgent; | 175 InspectorDebuggerAgent* m_inspectorDebuggerAgent; |
180 InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent; | 176 InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent; |
181 InspectorProfilerAgent* m_inspectorProfilerAgent; | 177 InspectorProfilerAgent* m_inspectorProfilerAgent; |
182 #endif | 178 #endif |
183 #if ENABLE(WORKERS) | 179 #if ENABLE(WORKERS) |
184 InspectorWorkerAgent* m_inspectorWorkerAgent; | 180 InspectorWorkerAgent* m_inspectorWorkerAgent; |
185 #endif | 181 #endif |
186 #if ENABLE(WEBGL) | 182 InspectorCanvasAgent* m_inspectorCanvasAgent; |
187 InspectorWebGLAgent* m_inspectorWebGLAgent; | |
188 #endif | |
189 }; | 183 }; |
190 | 184 |
191 InstrumentingAgents* instrumentationForPage(Page*); | 185 InstrumentingAgents* instrumentationForPage(Page*); |
192 #if ENABLE(WORKERS) | 186 #if ENABLE(WORKERS) |
193 InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*); | 187 InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*); |
194 #endif | 188 #endif |
195 | 189 |
196 } | 190 } |
197 | 191 |
198 #endif // !defined(InstrumentingAgents_h) | 192 #endif // !defined(InstrumentingAgents_h) |
OLD | NEW |