OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BINDINGS_LIB_MESSAGE_BUILDER_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_BUILDER_H_ |
6 #define MOJO_PUBLIC_BINDINGS_LIB_MESSAGE_BUILDER_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_BUILDER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "mojo/public/bindings/lib/fixed_buffer.h" | 10 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
11 #include "mojo/public/bindings/lib/message_internal.h" | 11 #include "mojo/public/cpp/bindings/lib/message_internal.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 class Message; | 14 class Message; |
15 | 15 |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 class MessageBuilder { | 18 class MessageBuilder { |
19 public: | 19 public: |
20 MessageBuilder(uint32_t name, size_t payload_size); | 20 MessageBuilder(uint32_t name, size_t payload_size); |
21 ~MessageBuilder(); | 21 ~MessageBuilder(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 ResponseMessageBuilder(uint32_t name, size_t payload_size, | 53 ResponseMessageBuilder(uint32_t name, size_t payload_size, |
54 uint64_t request_id) | 54 uint64_t request_id) |
55 : MessageWithRequestIDBuilder(name, payload_size, kMessageIsResponse, | 55 : MessageWithRequestIDBuilder(name, payload_size, kMessageIsResponse, |
56 request_id) { | 56 request_id) { |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 } // namespace internal | 60 } // namespace internal |
61 } // namespace mojo | 61 } // namespace mojo |
62 | 62 |
63 #endif // MOJO_PUBLIC_BINDINGS_LIB_MESSAGE_BUILDER_H_ | 63 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_BUILDER_H_ |
OLD | NEW |