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 {%- set header_guard = "%s_INTERNAL_H_"| | 5 {%- set header_guard = "%s_INTERNAL_H_"| |
6 format(module.path|upper|replace("/","_")|replace(".","_")) %} | 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} |
7 | 7 |
8 #ifndef {{header_guard}} | 8 #ifndef {{header_guard}} |
9 #define {{header_guard}} | 9 #define {{header_guard}} |
10 | 10 |
11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | 11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
12 #include "mojo/public/cpp/bindings/lib/buffer.h" | 12 #include "mojo/public/cpp/bindings/lib/buffer.h" |
| 13 #include "mojo/public/cpp/bindings/lib/union_accessor.h" |
| 14 #include "mojo/public/cpp/bindings/struct_ptr.h" |
13 | 15 |
14 {%- for import in imports %} | 16 {%- for import in imports %} |
15 #include "{{import.module.path}}-internal.h" | 17 #include "{{import.module.path}}-internal.h" |
16 {%- endfor %} | 18 {%- endfor %} |
17 | 19 |
18 namespace mojo { | 20 namespace mojo { |
19 namespace internal { | 21 namespace internal { |
20 class BoundsChecker; | 22 class BoundsChecker; |
21 } | 23 } |
22 } | 24 } |
(...skipping 22 matching lines...) Expand all Loading... |
45 {%- endfor %} | 47 {%- endfor %} |
46 | 48 |
47 #pragma pack(pop) | 49 #pragma pack(pop) |
48 | 50 |
49 } // namespace internal | 51 } // namespace internal |
50 {%- for namespace in namespaces_as_array|reverse %} | 52 {%- for namespace in namespaces_as_array|reverse %} |
51 } // namespace {{namespace}} | 53 } // namespace {{namespace}} |
52 {%- endfor %} | 54 {%- endfor %} |
53 | 55 |
54 #endif // {{header_guard}} | 56 #endif // {{header_guard}} |
OLD | NEW |