| Index: third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
|
| diff --git a/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp b/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
|
| index 1c61ec4bc3d708e0cb38e03bd97bdac55f2da8a1..9084094b8a365053f3aa76e90c6a462e2c673a00 100644
|
| --- a/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
|
| +++ b/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
|
| @@ -30,6 +30,8 @@
|
|
|
| #include "core/timing/PerformanceNavigation.h"
|
|
|
| +#include "bindings/core/v8/ScriptValue.h"
|
| +#include "bindings/core/v8/V8ObjectBuilder.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/loader/DocumentLoader.h"
|
| #include "core/loader/FrameLoaderTypes.h"
|
| @@ -72,6 +74,14 @@ unsigned short PerformanceNavigation::redirectCount() const {
|
| return timing.redirectCount();
|
| }
|
|
|
| +ScriptValue PerformanceNavigation::toJSONForBinding(
|
| + ScriptState* scriptState) const {
|
| + V8ObjectBuilder result(scriptState);
|
| + result.addNumber("type", type());
|
| + result.addNumber("redirectCount", redirectCount());
|
| + return result.scriptValue();
|
| +}
|
| +
|
| DEFINE_TRACE(PerformanceNavigation) {
|
| DOMWindowProperty::trace(visitor);
|
| }
|
|
|