Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: mojo/public/cpp/bindings/lib/message_header_validator.h

Issue 229683005: Validate MessageHeader before using (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug printfs Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.h"
6
7 namespace mojo {
8 namespace internal {
9
10 class MessageHeaderValidator : public MessageReceiver {
11 public:
12 explicit MessageHeaderValidator(MessageReceiver* next);
13
14 virtual bool Accept(Message* message) MOJO_OVERRIDE;
15 virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
16 MOJO_OVERRIDE;
17
18 private:
19 MessageReceiver* next_;
20 };
21
22 } // namespace internal
23 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/message.cc ('k') | mojo/public/cpp/bindings/lib/message_header_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698