OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 28 matching lines...) Expand all Loading... |
39 #include "public/platform/WebThread.h" | 39 #include "public/platform/WebThread.h" |
40 #include "public/web/WebDevToolsAgent.h" | 40 #include "public/web/WebDevToolsAgent.h" |
41 #include "web/InspectorEmulationAgent.h" | 41 #include "web/InspectorEmulationAgent.h" |
42 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
44 #include <memory> | 44 #include <memory> |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class GraphicsLayer; | 48 class GraphicsLayer; |
49 class InspectorLogAgent; | |
50 class InspectedFrames; | 49 class InspectedFrames; |
51 class InspectorOverlay; | 50 class InspectorOverlay; |
52 class InspectorResourceContainer; | 51 class InspectorResourceContainer; |
53 class InspectorResourceContentLoader; | 52 class InspectorResourceContentLoader; |
54 class LocalFrame; | 53 class LocalFrame; |
55 class Page; | 54 class Page; |
56 class PlatformGestureEvent; | 55 class PlatformGestureEvent; |
57 class PlatformKeyboardEvent; | 56 class PlatformKeyboardEvent; |
58 class PlatformMouseEvent; | 57 class PlatformMouseEvent; |
59 class PlatformTouchEvent; | 58 class PlatformTouchEvent; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // InspectorPageAgent::Client implementation. | 119 // InspectorPageAgent::Client implementation. |
121 void pageLayoutInvalidated(bool resized) override; | 120 void pageLayoutInvalidated(bool resized) override; |
122 void setPausedInDebuggerMessage(const String&) override; | 121 void setPausedInDebuggerMessage(const String&) override; |
123 void waitForCreateWindow(LocalFrame*) override; | 122 void waitForCreateWindow(LocalFrame*) override; |
124 | 123 |
125 // InspectorSession::Client implementation. | 124 // InspectorSession::Client implementation. |
126 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; | 125 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; |
127 void resumeStartup() override; | 126 void resumeStartup() override; |
128 void profilingStarted() override; | 127 void profilingStarted() override; |
129 void profilingStopped() override; | 128 void profilingStopped() override; |
130 void consoleCleared() override; | |
131 | 129 |
132 // WebThread::TaskObserver implementation. | 130 // WebThread::TaskObserver implementation. |
133 void willProcessTask() override; | 131 void willProcessTask() override; |
134 void didProcessTask() override; | 132 void didProcessTask() override; |
135 | 133 |
136 void initializeSession(int sessionId, const String& hostId, String* state); | 134 void initializeSession(int sessionId, const String& hostId, String* state); |
137 void destroySession(); | 135 void destroySession(); |
138 void dispatchMessageFromFrontend(int sessionId, const String& method, const
String& message); | 136 void dispatchMessageFromFrontend(int sessionId, const String& method, const
String& message); |
139 | 137 |
140 friend class WebDevToolsAgent; | 138 friend class WebDevToolsAgent; |
141 static void runDebuggerTask(int sessionId, std::unique_ptr<WebDevToolsAgent:
:MessageDescriptor>); | 139 static void runDebuggerTask(int sessionId, std::unique_ptr<WebDevToolsAgent:
:MessageDescriptor>); |
142 | 140 |
143 bool attached() const { return m_session.get(); } | 141 bool attached() const { return m_session.get(); } |
144 | 142 |
145 WebDevToolsAgentClient* m_client; | 143 WebDevToolsAgentClient* m_client; |
146 Member<WebLocalFrameImpl> m_webLocalFrameImpl; | 144 Member<WebLocalFrameImpl> m_webLocalFrameImpl; |
147 | 145 |
148 Member<InstrumentingAgents> m_instrumentingAgents; | 146 Member<InstrumentingAgents> m_instrumentingAgents; |
149 Member<InspectorResourceContentLoader> m_resourceContentLoader; | 147 Member<InspectorResourceContentLoader> m_resourceContentLoader; |
150 Member<InspectorOverlay> m_overlay; | 148 Member<InspectorOverlay> m_overlay; |
151 Member<InspectedFrames> m_inspectedFrames; | 149 Member<InspectedFrames> m_inspectedFrames; |
152 Member<InspectorResourceContainer> m_resourceContainer; | 150 Member<InspectorResourceContainer> m_resourceContainer; |
153 | 151 |
154 Member<InspectorDOMAgent> m_domAgent; | 152 Member<InspectorDOMAgent> m_domAgent; |
155 Member<InspectorPageAgent> m_pageAgent; | 153 Member<InspectorPageAgent> m_pageAgent; |
156 Member<InspectorNetworkAgent> m_networkAgent; | 154 Member<InspectorNetworkAgent> m_networkAgent; |
157 Member<InspectorLayerTreeAgent> m_layerTreeAgent; | 155 Member<InspectorLayerTreeAgent> m_layerTreeAgent; |
158 Member<InspectorTracingAgent> m_tracingAgent; | 156 Member<InspectorTracingAgent> m_tracingAgent; |
159 Member<InspectorLogAgent> m_logAgent; | |
160 | 157 |
161 Member<InspectorSession> m_session; | 158 Member<InspectorSession> m_session; |
162 bool m_includeViewAgents; | 159 bool m_includeViewAgents; |
163 int m_layerTreeId; | 160 int m_layerTreeId; |
164 }; | 161 }; |
165 | 162 |
166 } // namespace blink | 163 } // namespace blink |
167 | 164 |
168 #endif | 165 #endif |
OLD | NEW |