| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class Node; | 63 class Node; |
| 64 class Page; | 64 class Page; |
| 65 class RenderObject; | 65 class RenderObject; |
| 66 class ResourceError; | 66 class ResourceError; |
| 67 class ResourceLoader; | 67 class ResourceLoader; |
| 68 class ResourceRequest; | 68 class ResourceRequest; |
| 69 class ResourceResponse; | 69 class ResourceResponse; |
| 70 class ScriptArguments; | 70 class ScriptArguments; |
| 71 class ScriptCallStack; | 71 class ScriptCallStack; |
| 72 class ScriptExecutionContext; | 72 class ScriptExecutionContext; |
| 73 class ScriptState; |
| 73 class TimelineTraceEventProcessor; | 74 class TimelineTraceEventProcessor; |
| 74 class WebSocketHandshakeRequest; | 75 class WebSocketHandshakeRequest; |
| 75 class WebSocketHandshakeResponse; | 76 class WebSocketHandshakeResponse; |
| 76 class XMLHttpRequest; | 77 class XMLHttpRequest; |
| 77 | 78 |
| 78 typedef String ErrorString; | 79 typedef String ErrorString; |
| 79 | 80 |
| 80 namespace TimelineRecordType { | 81 namespace TimelineRecordType { |
| 81 extern const char DecodeImage[]; | 82 extern const char DecodeImage[]; |
| 82 extern const char Rasterize[]; | 83 extern const char Rasterize[]; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void didFireTimer(); | 165 void didFireTimer(); |
| 165 | 166 |
| 166 bool willDispatchXHRReadyStateChangeEvent(ScriptExecutionContext* context, X
MLHttpRequest* request); | 167 bool willDispatchXHRReadyStateChangeEvent(ScriptExecutionContext* context, X
MLHttpRequest* request); |
| 167 void didDispatchXHRReadyStateChangeEvent(); | 168 void didDispatchXHRReadyStateChangeEvent(); |
| 168 bool willDispatchXHRLoadEvent(ScriptExecutionContext* context, XMLHttpReques
t* request); | 169 bool willDispatchXHRLoadEvent(ScriptExecutionContext* context, XMLHttpReques
t* request); |
| 169 void didDispatchXHRLoadEvent(); | 170 void didDispatchXHRLoadEvent(); |
| 170 | 171 |
| 171 bool willEvaluateScript(Frame*, const String&, int); | 172 bool willEvaluateScript(Frame*, const String&, int); |
| 172 void didEvaluateScript(); | 173 void didEvaluateScript(); |
| 173 | 174 |
| 174 void consoleTimeStamp(ScriptExecutionContext*, PassRefPtr<ScriptArguments>); | 175 void consoleTimeStamp(ScriptExecutionContext*, const String& title); |
| 175 void domContentLoadedEventFired(Frame*); | 176 void domContentLoadedEventFired(Frame*); |
| 176 void loadEventFired(Frame*); | 177 void loadEventFired(Frame*); |
| 177 | 178 |
| 178 void startConsoleTiming(ScriptExecutionContext*, const String&); | 179 void consoleTime(ScriptExecutionContext*, const String&); |
| 179 void stopConsoleTiming(ScriptExecutionContext*, const String&, PassRefPtr<Sc
riptCallStack>); | 180 void consoleTimeEnd(ScriptExecutionContext*, const String&, ScriptState*); |
| 181 void consoleTimeline(ScriptExecutionContext*, const String& title, ScriptSta
te*); |
| 182 void consoleTimelineEnd(ScriptExecutionContext*, const String& title, Script
State*); |
| 180 | 183 |
| 181 void didScheduleResourceRequest(Document*, const String& url); | 184 void didScheduleResourceRequest(Document*, const String& url); |
| 182 void willSendRequest(unsigned long, DocumentLoader*, const ResourceRequest&,
const ResourceResponse&, const FetchInitiatorInfo&); | 185 void willSendRequest(unsigned long, DocumentLoader*, const ResourceRequest&,
const ResourceResponse&, const FetchInitiatorInfo&); |
| 183 bool willReceiveResourceResponse(Frame*, unsigned long, const ResourceRespon
se&); | 186 bool willReceiveResourceResponse(Frame*, unsigned long, const ResourceRespon
se&); |
| 184 void didReceiveResourceResponse(unsigned long, DocumentLoader*, const Resour
ceResponse&, ResourceLoader*); | 187 void didReceiveResourceResponse(unsigned long, DocumentLoader*, const Resour
ceResponse&, ResourceLoader*); |
| 185 void didFinishLoading(unsigned long, DocumentLoader*, double monotonicFinish
Time); | 188 void didFinishLoading(unsigned long, DocumentLoader*, double monotonicFinish
Time); |
| 186 void didFailLoading(unsigned long identifier, DocumentLoader* loader, const
ResourceError& error); | 189 void didFailLoading(unsigned long identifier, DocumentLoader* loader, const
ResourceError& error); |
| 187 bool willReceiveResourceData(Frame*, unsigned long identifier, int length); | 190 bool willReceiveResourceData(Frame*, unsigned long identifier, int length); |
| 188 void didReceiveResourceData(); | 191 void didReceiveResourceData(); |
| 189 | 192 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 void clearRecordStack(); | 251 void clearRecordStack(); |
| 249 | 252 |
| 250 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); | 253 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); |
| 251 const TimelineTimeConverter& timeConverter() const { return m_timeConverter;
} | 254 const TimelineTimeConverter& timeConverter() const { return m_timeConverter;
} |
| 252 long long idForNode(Node*); | 255 long long idForNode(Node*); |
| 253 void releaseNodeIds(); | 256 void releaseNodeIds(); |
| 254 | 257 |
| 255 double timestamp(); | 258 double timestamp(); |
| 256 Page* page(); | 259 Page* page(); |
| 257 | 260 |
| 261 void innerStart(bool fromConsole); |
| 262 void innerStop(bool fromConsole); |
| 263 |
| 258 InspectorPageAgent* m_pageAgent; | 264 InspectorPageAgent* m_pageAgent; |
| 259 InspectorMemoryAgent* m_memoryAgent; | 265 InspectorMemoryAgent* m_memoryAgent; |
| 260 InspectorDOMAgent* m_domAgent; | 266 InspectorDOMAgent* m_domAgent; |
| 261 TimelineTimeConverter m_timeConverter; | 267 TimelineTimeConverter m_timeConverter; |
| 262 | 268 |
| 263 InspectorFrontend::Timeline* m_frontend; | 269 InspectorFrontend::Timeline* m_frontend; |
| 264 double m_timestampOffset; | 270 double m_timestampOffset; |
| 265 | 271 |
| 266 Vector<TimelineRecordEntry> m_recordStack; | 272 Vector<TimelineRecordEntry> m_recordStack; |
| 267 | 273 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 279 GCEvents m_gcEvents; | 285 GCEvents m_gcEvents; |
| 280 int m_maxCallStackDepth; | 286 int m_maxCallStackDepth; |
| 281 unsigned m_platformInstrumentationClientInstalledAtStackDepth; | 287 unsigned m_platformInstrumentationClientInstalledAtStackDepth; |
| 282 RefPtr<JSONObject> m_pendingFrameRecord; | 288 RefPtr<JSONObject> m_pendingFrameRecord; |
| 283 InspectorType m_inspectorType; | 289 InspectorType m_inspectorType; |
| 284 InspectorClient* m_client; | 290 InspectorClient* m_client; |
| 285 WeakPtrFactory<InspectorTimelineAgent> m_weakFactory; | 291 WeakPtrFactory<InspectorTimelineAgent> m_weakFactory; |
| 286 RefPtr<TimelineTraceEventProcessor> m_traceEventProcessor; | 292 RefPtr<TimelineTraceEventProcessor> m_traceEventProcessor; |
| 287 unsigned m_styleRecalcElementCounter; | 293 unsigned m_styleRecalcElementCounter; |
| 288 int m_layerTreeId; | 294 int m_layerTreeId; |
| 295 bool m_isStarted; |
| 296 Vector<String> m_consoleTimelines; |
| 289 }; | 297 }; |
| 290 | 298 |
| 291 } // namespace WebCore | 299 } // namespace WebCore |
| 292 | 300 |
| 293 #endif // !defined(InspectorTimelineAgent_h) | 301 #endif // !defined(InspectorTimelineAgent_h) |
| OLD | NEW |