blob: b09f40d8c5efeeecac996cf8868cfaebb39975b5 [file] [log] [blame]
// 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 "mojo/public/cpp/bindings/message_filter.h"
namespace mojo {
MessageFilter::MessageFilter(MessageReceiver* sink) : sink_(sink) {
}
MessageFilter::~MessageFilter() {
}
PassThroughFilter::PassThroughFilter(MessageReceiver* sink)
: MessageFilter(sink) {
}
bool PassThroughFilter::Accept(Message* message) {
return sink_->Accept(message);
}
} // namespace mojo