John McCutchan | d695d70 | 2016-03-01 09:42:21 -0800 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace tonic { |
| 11 | class DartWrappable; |
| 12 | |
| 13 | typedef void (*DartWrappableAccepter)(DartWrappable*); |
| 14 | |
| 15 | struct 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_ |