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

Side by Side Diff: content/shell/browser/ipc_echo_message_filter.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/shell/browser/ipc_echo_message_filter.h"
6
7 #include "content/shell/common/shell_messages.h"
8
9 namespace content {
10
11 IPCEchoMessageFilter::IPCEchoMessageFilter()
12 : BrowserMessageFilter(ShellMsgStart) {
13 }
14
15 IPCEchoMessageFilter::~IPCEchoMessageFilter() {
16 }
17
18 bool IPCEchoMessageFilter::OnMessageReceived(const IPC::Message& message) {
19 bool handled = true;
20 IPC_BEGIN_MESSAGE_MAP(IPCEchoMessageFilter, message)
21 IPC_MESSAGE_HANDLER(ShellViewHostMsg_EchoPing, OnEchoPing)
22 IPC_MESSAGE_UNHANDLED(handled = false)
23 IPC_END_MESSAGE_MAP()
24
25 return handled;
26 }
27
28 void IPCEchoMessageFilter::OnEchoPing(int routing_id, int id,
29 const std::string& body) {
30 Send(new ShellViewMsg_EchoPong(routing_id, id, body));
31 }
32
33 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/ipc_echo_message_filter.h ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698