| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "base/logging.h" | 27 #include "base/logging.h" |
| 28 #include "base/trace_event/trace_event.h" | 28 #include "base/trace_event/trace_event.h" |
| 29 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 29 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 30 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" | 30 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
| 31 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" | 31 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" |
| 32 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 32 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
| 33 #include "mojo/public/cpp/bindings/lib/validate_params.h" | 33 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
| 34 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 34 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
| 35 #include "mojo/public/cpp/bindings/lib/validation_util.h" | 35 #include "mojo/public/cpp/bindings/lib/validation_util.h" |
| 36 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h" | |
| 37 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" | 36 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" |
| 38 | 37 |
| 39 {%- for namespace in namespaces_as_array %} | 38 {%- for namespace in namespaces_as_array %} |
| 40 namespace {{namespace}} { | 39 namespace {{namespace}} { |
| 41 {%- endfor %} | 40 {%- endfor %} |
| 42 {%- if variant %} | 41 {%- if variant %} |
| 43 namespace {{variant}} { | 42 namespace {{variant}} { |
| 44 {%- endif %} | 43 {%- endif %} |
| 45 | 44 |
| 46 {#--- Constants #} | 45 {#--- Constants #} |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 {%- endif %} | 127 {%- endif %} |
| 129 {%- for namespace in namespaces_as_array|reverse %} | 128 {%- for namespace in namespaces_as_array|reverse %} |
| 130 } // namespace {{namespace}} | 129 } // namespace {{namespace}} |
| 131 {%- endfor %} | 130 {%- endfor %} |
| 132 | 131 |
| 133 #if defined(__clang__) | 132 #if defined(__clang__) |
| 134 #pragma clang diagnostic pop | 133 #pragma clang diagnostic pop |
| 135 #elif defined(_MSC_VER) | 134 #elif defined(_MSC_VER) |
| 136 #pragma warning(pop) | 135 #pragma warning(pop) |
| 137 #endif | 136 #endif |
| OLD | NEW |