• 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 "mojo/public/cpp/bindings/message_filter.h"
6 
7 namespace mojo {
8 
MessageFilter(MessageReceiver * sink)9 MessageFilter::MessageFilter(MessageReceiver* sink) : sink_(sink) {
10 }
11 
~MessageFilter()12 MessageFilter::~MessageFilter() {
13 }
14 
PassThroughFilter(MessageReceiver * sink)15 PassThroughFilter::PassThroughFilter(MessageReceiver* sink)
16     : MessageFilter(sink) {
17 }
18 
Accept(Message * message)19 bool PassThroughFilter::Accept(Message* message) {
20   return sink_->Accept(message);
21 }
22 
23 }  // namespace mojo
24