Home | History | Annotate | Download | only in lib
      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 
      9 MessageFilter::MessageFilter(MessageReceiver* sink) : sink_(sink) {
     10 }
     11 
     12 MessageFilter::~MessageFilter() {
     13 }
     14 
     15 PassThroughFilter::PassThroughFilter(MessageReceiver* sink)
     16     : MessageFilter(sink) {
     17 }
     18 
     19 bool PassThroughFilter::Accept(Message* message) {
     20   return sink_->Accept(message);
     21 }
     22 
     23 }  // namespace mojo
     24