• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by Allocator_h.template.
2
3// Copyright 2016 The Chromium Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style license that can be
5// found in the LICENSE file.
6
7#ifndef {{"_".join(config.protocol.namespace)}}_Allocator_h
8#define {{"_".join(config.protocol.namespace)}}_Allocator_h
9
10{% for namespace in config.protocol.namespace %}
11namespace {{namespace}} {
12{% endfor %}
13
14enum NotNullTagEnum { NotNullLiteral };
15
16#define PROTOCOL_DISALLOW_COPY(ClassName) \
17    private: \
18        ClassName(const ClassName&) = delete; \
19        ClassName& operator=(const ClassName&) = delete
20
21{% for namespace in config.protocol.namespace %}
22} // namespace {{namespace}}
23{% endfor %}
24
25#endif // !defined({{"_".join(config.protocol.namespace)}}_Allocator_h)
26