summaryrefslogtreecommitdiffstats
path: root/mojo/public/cpp/bindings/lib/message_header_validator.h
blob: bccef1f772a4cfa6184dff3b924f497c23c90cdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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.

#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_HEADER_VALIDATOR_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_HEADER_VALIDATOR_H_

#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/message_filter.h"

namespace mojo {
namespace internal {

class MessageHeaderValidator : public MessageFilter {
 public:
  explicit MessageHeaderValidator(MessageReceiver* sink = nullptr);

  bool Accept(Message* message) override;
};

}  // namespace internal
}  // namespace mojo

#endif  // MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_HEADER_VALIDATOR_H_