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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 InspectorController_h | 31 #ifndef InspectorController_h |
32 #define InspectorController_h | 32 #define InspectorController_h |
33 | 33 |
34 #if ENABLE(INSPECTOR) | |
35 | 34 |
36 #include "InspectorBaseAgent.h" | 35 #include "InspectorBaseAgent.h" |
37 #include <wtf/Forward.h> | 36 #include <wtf/Forward.h> |
38 #include <wtf/HashMap.h> | 37 #include <wtf/HashMap.h> |
39 #include <wtf/Noncopyable.h> | 38 #include <wtf/Noncopyable.h> |
40 #include <wtf/text/WTFString.h> | 39 #include <wtf/text/WTFString.h> |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
44 class DOMWrapperWorld; | 43 class DOMWrapperWorld; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 100 |
102 void inspect(Node*); | 101 void inspect(Node*); |
103 void drawHighlight(GraphicsContext&) const; | 102 void drawHighlight(GraphicsContext&) const; |
104 void getHighlight(Highlight*) const; | 103 void getHighlight(Highlight*) const; |
105 void hideHighlight(); | 104 void hideHighlight(); |
106 Node* highlightedNode() const; | 105 Node* highlightedNode() const; |
107 | 106 |
108 bool isUnderTest(); | 107 bool isUnderTest(); |
109 void evaluateForTestInFrontend(long callId, const String& script); | 108 void evaluateForTestInFrontend(long callId, const String& script); |
110 | 109 |
111 #if ENABLE(JAVASCRIPT_DEBUGGER) | |
112 bool profilerEnabled(); | 110 bool profilerEnabled(); |
113 void setProfilerEnabled(bool); | 111 void setProfilerEnabled(bool); |
114 | 112 |
115 void resume(); | 113 void resume(); |
116 #endif | |
117 | 114 |
118 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); | 115 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); |
119 | 116 |
120 InspectorClient* inspectorClient() const { return m_inspectorClient; } | 117 InspectorClient* inspectorClient() const { return m_inspectorClient; } |
121 InspectorPageAgent* pageAgent() const { return m_pageAgent; } | 118 InspectorPageAgent* pageAgent() const { return m_pageAgent; } |
122 | 119 |
123 void reportMemoryUsage(MemoryObjectInfo*) const; | 120 void reportMemoryUsage(MemoryObjectInfo*) const; |
124 | 121 |
125 void willProcessTask(); | 122 void willProcessTask(); |
126 void didProcessTask(); | 123 void didProcessTask(); |
(...skipping 14 matching lines...) Expand all Loading... |
141 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 138 RefPtr<InstrumentingAgents> m_instrumentingAgents; |
142 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 139 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
143 OwnPtr<InspectorCompositeState> m_state; | 140 OwnPtr<InspectorCompositeState> m_state; |
144 OwnPtr<InspectorOverlay> m_overlay; | 141 OwnPtr<InspectorOverlay> m_overlay; |
145 | 142 |
146 InspectorAgent* m_inspectorAgent; | 143 InspectorAgent* m_inspectorAgent; |
147 InspectorDOMAgent* m_domAgent; | 144 InspectorDOMAgent* m_domAgent; |
148 InspectorResourceAgent* m_resourceAgent; | 145 InspectorResourceAgent* m_resourceAgent; |
149 InspectorPageAgent* m_pageAgent; | 146 InspectorPageAgent* m_pageAgent; |
150 InspectorMemoryAgent* m_memoryAgent; | 147 InspectorMemoryAgent* m_memoryAgent; |
151 #if ENABLE(JAVASCRIPT_DEBUGGER) | |
152 InspectorDebuggerAgent* m_debuggerAgent; | 148 InspectorDebuggerAgent* m_debuggerAgent; |
153 InspectorDOMDebuggerAgent* m_domDebuggerAgent; | 149 InspectorDOMDebuggerAgent* m_domDebuggerAgent; |
154 InspectorProfilerAgent* m_profilerAgent; | 150 InspectorProfilerAgent* m_profilerAgent; |
155 #endif | |
156 | 151 |
157 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 152 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
158 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 153 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; |
159 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 154 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
160 Page* m_page; | 155 Page* m_page; |
161 InspectorClient* m_inspectorClient; | 156 InspectorClient* m_inspectorClient; |
162 InspectorAgentRegistry m_agents; | 157 InspectorAgentRegistry m_agents; |
163 bool m_isUnderTest; | 158 bool m_isUnderTest; |
164 }; | 159 }; |
165 | 160 |
166 } | 161 } |
167 | 162 |
168 #endif // ENABLE(INSPECTOR) | |
169 | 163 |
170 #endif // !defined(InspectorController_h) | 164 #endif // !defined(InspectorController_h) |
OLD | NEW |