| 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 {%- if variant -%} | 5 {%- if variant -%} |
| 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} | 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} |
| 7 {%- else -%} | 7 {%- else -%} |
| 8 {%- set variant_path = module.path -%} | 8 {%- set variant_path = module.path -%} |
| 9 {%- endif -%} | 9 {%- endif -%} |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 {%- for import in imports %} | 24 {%- for import in imports %} |
| 25 {%- if variant %} | 25 {%- if variant %} |
| 26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}" | 26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}" |
| 27 {%- else %} | 27 {%- else %} |
| 28 #include "{{import.module.path}}-internal.h" | 28 #include "{{import.module.path}}-internal.h" |
| 29 {%- endif %} | 29 {%- endif %} |
| 30 {%- endfor %} | 30 {%- endfor %} |
| 31 | 31 |
| 32 namespace mojo { | 32 namespace mojo { |
| 33 namespace internal { | 33 namespace internal { |
| 34 class BoundsChecker; | 34 class ValidationContext; |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 {%- for namespace in namespaces_as_array %} | 38 {%- for namespace in namespaces_as_array %} |
| 39 namespace {{namespace}} { | 39 namespace {{namespace}} { |
| 40 {%- endfor %} | 40 {%- endfor %} |
| 41 {%- if variant %} | 41 {%- if variant %} |
| 42 namespace {{variant}} { | 42 namespace {{variant}} { |
| 43 {%- endif %} | 43 {%- endif %} |
| 44 | 44 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 } // namespace internal | 118 } // namespace internal |
| 119 {%- if variant %} | 119 {%- if variant %} |
| 120 } // namespace {{variant}} | 120 } // namespace {{variant}} |
| 121 {%- endif %} | 121 {%- endif %} |
| 122 {%- for namespace in namespaces_as_array|reverse %} | 122 {%- for namespace in namespaces_as_array|reverse %} |
| 123 } // namespace {{namespace}} | 123 } // namespace {{namespace}} |
| 124 {%- endfor %} | 124 {%- endfor %} |
| 125 | 125 |
| 126 #endif // {{header_guard}} | 126 #endif // {{header_guard}} |
| OLD | NEW |