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 "core/inspector/InspectorTraceEvents.h" | 5 #include "core/inspector/InspectorTraceEvents.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptCallStack.h" | 7 #include "bindings/core/v8/ScriptCallStack.h" |
8 #include "bindings/core/v8/ScriptSourceCode.h" | 8 #include "bindings/core/v8/ScriptSourceCode.h" |
9 #include "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
10 #include "core/animation/KeyframeEffect.h" | 10 #include "core/animation/KeyframeEffect.h" |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 } | 425 } |
426 | 426 |
427 PassOwnPtr<TracedValue> InspectorReceiveResponseEvent::data(unsigned long identi
fier, LocalFrame* frame, const ResourceResponse& response) | 427 PassOwnPtr<TracedValue> InspectorReceiveResponseEvent::data(unsigned long identi
fier, LocalFrame* frame, const ResourceResponse& response) |
428 { | 428 { |
429 String requestId = IdentifiersFactory::requestId(identifier); | 429 String requestId = IdentifiersFactory::requestId(identifier); |
430 | 430 |
431 OwnPtr<TracedValue> value = TracedValue::create(); | 431 OwnPtr<TracedValue> value = TracedValue::create(); |
432 value->setString("requestId", requestId); | 432 value->setString("requestId", requestId); |
433 value->setString("frame", toHexString(frame)); | 433 value->setString("frame", toHexString(frame)); |
434 value->setInteger("statusCode", response.httpStatusCode()); | 434 value->setInteger("statusCode", response.httpStatusCode()); |
435 value->setString("mimeType", response.mimeType().string().isolatedCopy()); | 435 value->setString("mimeType", response.mimeType().getString().isolatedCopy())
; |
436 return value.release(); | 436 return value.release(); |
437 } | 437 } |
438 | 438 |
439 PassOwnPtr<TracedValue> InspectorReceiveDataEvent::data(unsigned long identifier
, LocalFrame* frame, int encodedDataLength) | 439 PassOwnPtr<TracedValue> InspectorReceiveDataEvent::data(unsigned long identifier
, LocalFrame* frame, int encodedDataLength) |
440 { | 440 { |
441 String requestId = IdentifiersFactory::requestId(identifier); | 441 String requestId = IdentifiersFactory::requestId(identifier); |
442 | 442 |
443 OwnPtr<TracedValue> value = TracedValue::create(); | 443 OwnPtr<TracedValue> value = TracedValue::create(); |
444 value->setString("requestId", requestId); | 444 value->setString("requestId", requestId); |
445 value->setString("frame", toHexString(frame)); | 445 value->setString("frame", toHexString(frame)); |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 if (request.move()) | 863 if (request.move()) |
864 value->setBoolean("move", true); | 864 value->setBoolean("move", true); |
865 if (request.listBased()) | 865 if (request.listBased()) |
866 value->setBoolean("listBased", true); | 866 value->setBoolean("listBased", true); |
867 else if (Node* node = result.innerNode()) | 867 else if (Node* node = result.innerNode()) |
868 setNodeInfo(value.get(), node, "nodeId", "nodeName"); | 868 setNodeInfo(value.get(), node, "nodeId", "nodeName"); |
869 return value.release(); | 869 return value.release(); |
870 } | 870 } |
871 | 871 |
872 } // namespace blink | 872 } // namespace blink |
OLD | NEW |