| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "core/inspector/InspectorTraceEvents.h" | 6 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptCallStackFactory.h" | |
| 9 #include "bindings/core/v8/ScriptGCEvent.h" | |
| 10 #include "bindings/core/v8/ScriptSourceCode.h" | |
| 11 #include "core/events/Event.h" | |
| 12 #include "core/frame/FrameView.h" | |
| 13 #include "core/frame/LocalDOMWindow.h" | |
| 14 #include "core/frame/LocalFrame.h" | |
| 15 #include "core/inspector/IdentifiersFactory.h" | |
| 16 #include "core/inspector/InspectorNodeIds.h" | |
| 17 #include "core/inspector/ScriptCallStack.h" | |
| 18 #include "core/page/Page.h" | |
| 19 #include "core/rendering/RenderImage.h" | |
| 20 #include "core/rendering/RenderObject.h" | |
| 21 #include "platform/graphics/GraphicsLayer.h" | |
| 22 #include "platform/JSONValues.h" | |
| 23 #include "platform/network/ResourceRequest.h" | |
| 24 #include "platform/network/ResourceResponse.h" | |
| 25 #include "platform/TracedValue.h" | |
| 26 #include "platform/weborigin/KURL.h" | |
| 27 #include "wtf/Vector.h" | |
| 28 #include <inttypes.h> | 8 #include <inttypes.h> |
| 9 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h" |
| 10 #include "sky/engine/bindings/core/v8/ScriptGCEvent.h" |
| 11 #include "sky/engine/bindings/core/v8/ScriptSourceCode.h" |
| 12 #include "sky/engine/core/events/Event.h" |
| 13 #include "sky/engine/core/frame/FrameView.h" |
| 14 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 15 #include "sky/engine/core/frame/LocalFrame.h" |
| 16 #include "sky/engine/core/inspector/IdentifiersFactory.h" |
| 17 #include "sky/engine/core/inspector/InspectorNodeIds.h" |
| 18 #include "sky/engine/core/inspector/ScriptCallStack.h" |
| 19 #include "sky/engine/core/page/Page.h" |
| 20 #include "sky/engine/core/rendering/RenderImage.h" |
| 21 #include "sky/engine/core/rendering/RenderObject.h" |
| 22 #include "sky/engine/platform/JSONValues.h" |
| 23 #include "sky/engine/platform/TracedValue.h" |
| 24 #include "sky/engine/platform/graphics/GraphicsLayer.h" |
| 25 #include "sky/engine/platform/network/ResourceRequest.h" |
| 26 #include "sky/engine/platform/network/ResourceResponse.h" |
| 27 #include "sky/engine/platform/weborigin/KURL.h" |
| 28 #include "sky/engine/wtf/Vector.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 class JSCallStack : public TraceEvent::ConvertableToTraceFormat { | 34 class JSCallStack : public TraceEvent::ConvertableToTraceFormat { |
| 35 public: | 35 public: |
| 36 explicit JSCallStack(PassRefPtr<ScriptCallStack> callstack) | 36 explicit JSCallStack(PassRefPtr<ScriptCallStack> callstack) |
| 37 { | 37 { |
| 38 ASSERT(m_serialized.isSafeToSendToAnotherThread()); | 38 ASSERT(m_serialized.isSafeToSendToAnotherThread()); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) | 306 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) |
| 307 { | 307 { |
| 308 RefPtr<TracedValue> value = TracedValue::create(); | 308 RefPtr<TracedValue> value = TracedValue::create(); |
| 309 value->setString("message", message); | 309 value->setString("message", message); |
| 310 if (LocalFrame* frame = frameForExecutionContext(context)) | 310 if (LocalFrame* frame = frameForExecutionContext(context)) |
| 311 value->setString("frame", toHexString(frame)); | 311 value->setString("frame", toHexString(frame)); |
| 312 return value; | 312 return value; |
| 313 } | 313 } |
| 314 | 314 |
| 315 } | 315 } |
| OLD | NEW |