| Index: content/shell/browser/webkit_test_controller.cc
|
| diff --git a/content/shell/browser/webkit_test_controller.cc b/content/shell/browser/webkit_test_controller.cc
|
| index 960f6a65405fb4cf16a767ddf3758c9d345d52f4..e4a20aac9249fb781e7f86dbf860fe098fcc7a0e 100644
|
| --- a/content/shell/browser/webkit_test_controller.cc
|
| +++ b/content/shell/browser/webkit_test_controller.cc
|
| @@ -389,6 +389,7 @@ bool WebKitTestController::OnMessageReceived(const IPC::Message& message) {
|
| OnCloseRemainingWindows)
|
| IPC_MESSAGE_HANDLER(ShellViewHostMsg_ResetDone, OnResetDone)
|
| IPC_MESSAGE_HANDLER(ShellViewHostMsg_LeakDetectionDone, OnLeakDetectionDone)
|
| + IPC_MESSAGE_HANDLER(ShellViewHostMsg_EchoPing, OnEchoPing)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -693,4 +694,14 @@ void WebKitTestController::OnLeakDetectionDone(
|
| DiscardMainWindow();
|
| }
|
|
|
| +void WebKitTestController::OnEchoPing(int id, const std::string& body) {
|
| + if (main_window_ && main_window_->web_contents()) {
|
| + RenderViewHost* render_view_host =
|
| + main_window_->web_contents()->GetRenderViewHost();
|
| + render_view_host->Send(
|
| + new ShellViewMsg_EchoPong(render_view_host->GetRoutingID(), id, body));
|
| + }
|
| +}
|
| +
|
| +
|
| } // namespace content
|
|
|