OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include <limits> | 11 #include <limits> |
9 #include <vector> | 12 #include <vector> |
10 | 13 |
11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
12 #include "mojo/public/cpp/bindings/lib/message_internal.h" | 15 #include "mojo/public/cpp/bindings/lib/message_internal.h" |
13 #include "mojo/public/cpp/bindings/lib/pickle_buffer.h" | 16 #include "mojo/public/cpp/bindings/lib/pickle_buffer.h" |
14 #include "mojo/public/cpp/environment/logging.h" | 17 #include "mojo/public/cpp/environment/logging.h" |
15 | 18 |
16 namespace mojo { | 19 namespace mojo { |
17 | 20 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // otherwise returns an error code if something went wrong. | 167 // otherwise returns an error code if something went wrong. |
165 // | 168 // |
166 // NOTE: The message hasn't been validated and may be malformed! | 169 // NOTE: The message hasn't been validated and may be malformed! |
167 MojoResult ReadAndDispatchMessage(MessagePipeHandle handle, | 170 MojoResult ReadAndDispatchMessage(MessagePipeHandle handle, |
168 MessageReceiver* receiver, | 171 MessageReceiver* receiver, |
169 bool* receiver_result); | 172 bool* receiver_result); |
170 | 173 |
171 } // namespace mojo | 174 } // namespace mojo |
172 | 175 |
173 #endif // MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ | 176 #endif // MOJO_PUBLIC_CPP_BINDINGS_MESSAGE_H_ |
OLD | NEW |