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

Unified Diff: content/shell/renderer/ipc_echo.cc

Issue 477343002: Revert "Add IPC benchmarking API to Blink TestRunner" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/shell/renderer/ipc_echo.h ('k') | content/shell/renderer/test_runner/WebTestDelegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/ipc_echo.cc
diff --git a/content/shell/renderer/ipc_echo.cc b/content/shell/renderer/ipc_echo.cc
deleted file mode 100644
index a358b9197ddf0ffcad4dbc1d9a62c33ec2c233db..0000000000000000000000000000000000000000
--- a/content/shell/renderer/ipc_echo.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/shell/renderer/ipc_echo.h"
-
-#include "base/logging.h"
-#include "content/shell/common/shell_messages.h"
-#include "ipc/ipc_sender.h"
-#include "third_party/WebKit/public/web/WebDOMCustomEvent.h"
-#include "third_party/WebKit/public/web/WebDOMEvent.h"
-#include "third_party/WebKit/public/web/WebSerializedScriptValue.h"
-
-namespace content {
-
-IPCEcho::IPCEcho(blink::WebDocument document,
- IPC::Sender* sender,
- int routing_id)
- : document_(document), sender_(sender), routing_id_(routing_id),
- last_echo_id_(0) {
-}
-
-void IPCEcho::RequestEcho(int id, int size) {
- sender_->Send(new ShellViewHostMsg_EchoPing(
- routing_id_, id, std::string(size, '*')));
-}
-
-void IPCEcho::DidRespondEcho(int id, int size) {
- last_echo_id_ = id;
- last_echo_size_ = size;
- blink::WebString eventName = blink::WebString::fromUTF8("CustomEvent");
- blink::WebString eventType = blink::WebString::fromUTF8("pong");
- blink::WebDOMEvent event = document_.createEvent(eventName);
- event.to<blink::WebDOMCustomEvent>().initCustomEvent(
- eventType, false, false, blink::WebSerializedScriptValue());
- document_.dispatchEvent(event);
-}
-
-} // namespace content
« no previous file with comments | « content/shell/renderer/ipc_echo.h ('k') | content/shell/renderer/test_runner/WebTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698