diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-25 00:07:30 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-25 00:07:30 +0000 |
commit | 7412204291319c7099206d8e4964b981737e2170 (patch) | |
tree | e96de76e7864b31e664b5a902b2e3f4959d86843 /ipc/message_filter.cc | |
parent | a8f2a3efb04eea886d198c2dcc87bed6cf472dd6 (diff) | |
download | chromium_src-7412204291319c7099206d8e4964b981737e2170.zip chromium_src-7412204291319c7099206d8e4964b981737e2170.tar.gz chromium_src-7412204291319c7099206d8e4964b981737e2170.tar.bz2 |
Move IPC::MessageFilter and router to a separate file
There are no changes in implementation in this CL. This is in preparation
for making IPC::Channel support filters on the Channel's thread.
BUG=364241
TBR=cpu@chromium.org,nduca@chromium.org
cpu: OWNERS for win8
nduca: OWNERS for components/tracing
Review URL: https://codereview.chromium.org/245443005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/message_filter.cc')
-rw-r--r-- | ipc/message_filter.cc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ipc/message_filter.cc b/ipc/message_filter.cc new file mode 100644 index 0000000..7218126 --- /dev/null +++ b/ipc/message_filter.cc @@ -0,0 +1,35 @@ +// 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 "ipc/message_filter.h" + +#include "base/memory/ref_counted.h" +#include "ipc/ipc_channel.h" + +namespace IPC { + +MessageFilter::MessageFilter() {} + +void MessageFilter::OnFilterAdded(Channel* channel) {} + +void MessageFilter::OnFilterRemoved() {} + +void MessageFilter::OnChannelConnected(int32 peer_pid) {} + +void MessageFilter::OnChannelError() {} + +void MessageFilter::OnChannelClosing() {} + +bool MessageFilter::OnMessageReceived(const Message& message) { + return false; +} + +bool MessageFilter::GetSupportedMessageClasses( + std::vector<uint32>* /*supported_message_classes*/) const { + return false; +} + +MessageFilter::~MessageFilter() {} + +} // namespace IPC |