Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1730)

Unified Diff: content/shell/browser/webkit_test_controller.cc

Issue 478483005: Add IPC benchmarking API to Blink TestRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698