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 17 matching lines...) Expand all Loading... |
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 #include "core/inspector/InspectorBaseAgent.h" | 34 #include "core/inspector/InspectorBaseAgent.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
| 38 #include "wtf/Vector.h" |
38 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
39 | 40 |
40 namespace WebCore { | 41 namespace WebCore { |
41 | 42 |
42 class DOMWrapperWorld; | 43 class DOMWrapperWorld; |
43 class Frame; | 44 class Frame; |
44 class GraphicsContext; | 45 class GraphicsContext; |
45 class InjectedScriptManager; | 46 class InjectedScriptManager; |
46 class InspectorBackendDispatcher; | 47 class InspectorBackendDispatcher; |
| 48 class InspectorAgent; |
47 class InspectorClient; | 49 class InspectorClient; |
48 class InspectorDOMAgent; | 50 class InspectorDOMAgent; |
49 class InspectorFrontend; | 51 class InspectorFrontend; |
50 class InspectorFrontendChannel; | 52 class InspectorFrontendChannel; |
51 class InspectorFrontendClient; | 53 class InspectorFrontendClient; |
52 class InspectorPageAgent; | 54 class InspectorPageAgent; |
53 class InspectorTimelineAgent; | 55 class InspectorTimelineAgent; |
54 class InspectorOverlay; | 56 class InspectorOverlay; |
55 class InspectorState; | 57 class InspectorState; |
56 class InstrumentingAgents; | 58 class InstrumentingAgents; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool isUnderTest(); | 111 bool isUnderTest(); |
110 void evaluateForTestInFrontend(long callId, const String& script); | 112 void evaluateForTestInFrontend(long callId, const String& script); |
111 | 113 |
112 void resume(); | 114 void resume(); |
113 | 115 |
114 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); | 116 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); |
115 | 117 |
116 void willProcessTask(); | 118 void willProcessTask(); |
117 void didProcessTask(); | 119 void didProcessTask(); |
118 | 120 |
| 121 void didCommitLoadForMainFrame(); |
119 void didBeginFrame(int frameId); | 122 void didBeginFrame(int frameId); |
120 void didCancelFrame(); | 123 void didCancelFrame(); |
121 void willComposite(); | 124 void willComposite(); |
122 void didComposite(); | 125 void didComposite(); |
123 | 126 |
124 void processGPUEvent(double timestamp, int phase, bool foreign, size_t usedG
PUMemoryBytes); | 127 void processGPUEvent(double timestamp, int phase, bool foreign, size_t usedG
PUMemoryBytes); |
125 | 128 |
126 void scriptsEnabled(bool); | 129 void scriptsEnabled(bool); |
127 | 130 |
128 private: | 131 private: |
129 InspectorController(Page*, InspectorClient*); | 132 InspectorController(Page*, InspectorClient*); |
130 | 133 |
131 friend InstrumentingAgents* instrumentationForPage(Page*); | 134 friend InstrumentingAgents* instrumentationForPage(Page*); |
132 | 135 |
133 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 136 RefPtr<InstrumentingAgents> m_instrumentingAgents; |
134 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 137 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
135 OwnPtr<InspectorCompositeState> m_state; | 138 OwnPtr<InspectorCompositeState> m_state; |
136 OwnPtr<InspectorOverlay> m_overlay; | 139 OwnPtr<InspectorOverlay> m_overlay; |
137 | 140 |
138 InspectorDOMAgent* m_domAgent; | 141 InspectorDOMAgent* m_domAgent; |
139 InspectorPageAgent* m_pageAgent; | 142 InspectorPageAgent* m_pageAgent; |
140 InspectorTimelineAgent* m_timelineAgent; | 143 InspectorTimelineAgent* m_timelineAgent; |
141 | 144 |
142 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 145 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
143 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 146 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; |
144 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 147 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
145 Page* m_page; | 148 Page* m_page; |
146 InspectorClient* m_inspectorClient; | 149 InspectorClient* m_inspectorClient; |
147 InspectorAgentRegistry m_agents; | 150 InspectorAgentRegistry m_agents; |
| 151 Vector<InspectorAgent*> m_moduleAgents; |
148 bool m_isUnderTest; | 152 bool m_isUnderTest; |
149 bool m_deferredAgentsInitialized; | 153 bool m_deferredAgentsInitialized; |
150 }; | 154 }; |
151 | 155 |
152 } | 156 } |
153 | 157 |
154 | 158 |
155 #endif // !defined(InspectorController_h) | 159 #endif // !defined(InspectorController_h) |
OLD | NEW |