blob: 763a3b1151f13d25f8079580f1ed787dc1522209 [file] [log] [blame]
John McCutchand695d702016-03-01 09:42:21 -08001// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TONIC_DART_WRAPPER_INFO_H_
6#define TONIC_DART_WRAPPER_INFO_H_
7
8#include "base/macros.h"
9
10namespace tonic {
11class DartWrappable;
12
13typedef void (*DartWrappableAccepter)(DartWrappable*);
14
15struct DartWrapperInfo {
16 const char* interface_name;
17 const size_t size_in_bytes;
18 const DartWrappableAccepter ref_object;
19 const DartWrappableAccepter deref_object;
20
21 private:
22 DartWrapperInfo(const DartWrapperInfo&) = delete;
23 DartWrapperInfo& operator=(const DartWrapperInfo&) = delete;
24};
25
26} // namespace tonic
27
28#endif // TONIC_DART_WRAPPER_INFO_H_