| Index: content/renderer/dom_automation_controller.cc
|
| diff --git a/content/renderer/dom_automation_controller.cc b/content/renderer/dom_automation_controller.cc
|
| index 1718d646026c2a16369d1007b64a448508dacf4e..9c051e05d450e8eb973bcc15d9c536940e796128 100644
|
| --- a/content/renderer/dom_automation_controller.cc
|
| +++ b/content/renderer/dom_automation_controller.cc
|
| @@ -37,6 +37,9 @@ DomAutomationController::DomAutomationController()
|
| BindCallback("getBrowserHistogram",
|
| base::Bind(&DomAutomationController::GetBrowserHistogram,
|
| base::Unretained(this)));
|
| + BindCallback("getTabLoadTimingInformation",
|
| + base::Bind(&DomAutomationController::GetTabLoadTimingInformation,
|
| + base::Unretained(this)));
|
| }
|
|
|
| void DomAutomationController::Send(const CppArgumentList& args,
|
| @@ -213,4 +216,19 @@ void DomAutomationController::GetBrowserHistogram(const CppArgumentList& args,
|
| result->Set(histogram_json);
|
| }
|
|
|
| +void DomAutomationController::GetTabLoadTimingInformation(
|
| + const CppArgumentList& args,
|
| + CppVariant* result) {
|
| + if (!sender_) {
|
| + NOTREACHED();
|
| + result->SetNull();
|
| + return;
|
| + }
|
| +
|
| + std::string tab_timing_json;
|
| + sender_->Send(
|
| + new ChildProcessHostMsg_GetTabLoadTimingInformation(&tab_timing_json));
|
| + result->Set(tab_timing_json);
|
| +}
|
| +
|
| } // namespace content
|
|
|