• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "ipc/message_filter.h"
6 
7 #include <stdint.h>
8 
9 #include "base/memory/ref_counted.h"
10 #include "ipc/ipc_channel.h"
11 
12 namespace IPC {
13 
14 MessageFilter::MessageFilter() = default;
15 
OnFilterAdded(Channel * channel)16 void MessageFilter::OnFilterAdded(Channel* channel) {}
17 
OnFilterRemoved()18 void MessageFilter::OnFilterRemoved() {}
19 
OnChannelConnected(int32_t peer_pid)20 void MessageFilter::OnChannelConnected(int32_t peer_pid) {}
21 
OnChannelError()22 void MessageFilter::OnChannelError() {}
23 
OnChannelClosing()24 void MessageFilter::OnChannelClosing() {}
25 
OnMessageReceived(const Message & message)26 bool MessageFilter::OnMessageReceived(const Message& message) {
27   return false;
28 }
29 
GetSupportedMessageClasses(std::vector<uint32_t> *) const30 bool MessageFilter::GetSupportedMessageClasses(
31     std::vector<uint32_t>* /*supported_message_classes*/) const {
32   return false;
33 }
34 
35 MessageFilter::~MessageFilter() = default;
36 
37 }  // namespace IPC
38