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 "base/memory/ref_counted.h" 8 #include "ipc/ipc_channel.h" 9 10 namespace IPC { 11 12 MessageFilter::MessageFilter() {} 13 14 void MessageFilter::OnFilterAdded(Sender* sender) {} 15 16 void MessageFilter::OnFilterRemoved() {} 17 18 void MessageFilter::OnChannelConnected(int32 peer_pid) {} 19 20 void MessageFilter::OnChannelError() {} 21 22 void MessageFilter::OnChannelClosing() {} 23 24 bool MessageFilter::OnMessageReceived(const Message& message) { 25 return false; 26 } 27 28 bool MessageFilter::GetSupportedMessageClasses( 29 std::vector<uint32>* /*supported_message_classes*/) const { 30 return false; 31 } 32 33 MessageFilter::~MessageFilter() {} 34 35 } // namespace IPC 36