blob: cb2a6212649021be0ffa4ffd0aab54e22a1e7ae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 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.
#ifndef CONTENT_SHELL_BROWSER_IPC_ECHO_MESSAGE_FILTER_H_
#define CONTENT_SHELL_BROWSER_IPC_ECHO_MESSAGE_FILTER_H_
#include <string>
#include "content/public/browser/browser_message_filter.h"
namespace content {
class IPCEchoMessageFilter : public BrowserMessageFilter {
public:
IPCEchoMessageFilter();
private:
virtual ~IPCEchoMessageFilter();
// BrowserMessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message) override;
void OnEchoPing(int routing_id, int id, const std::string& body);
DISALLOW_COPY_AND_ASSIGN(IPCEchoMessageFilter);
};
} // namespace content
#endif // CONTENT_SHELL_BROWSER_IPC_ECHO_MESSAGE_FILTER_H_
|