OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef SKY_ENGINE_TONIC_DART_WRAPPER_INFO_H_ | 5 #ifndef TONIC_DART_WRAPPER_INFO_H_ |
6 #define SKY_ENGINE_TONIC_DART_WRAPPER_INFO_H_ | 6 #define TONIC_DART_WRAPPER_INFO_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace tonic { | 10 namespace tonic { |
11 class DartWrappable; | 11 class DartWrappable; |
12 | 12 |
13 typedef void (*DartWrappableAccepter)(DartWrappable*); | 13 typedef void (*DartWrappableAccepter)(DartWrappable*); |
14 | 14 |
15 struct DartWrapperInfo { | 15 struct DartWrapperInfo { |
16 const char* interface_name; | 16 const char* interface_name; |
17 const size_t size_in_bytes; | 17 const size_t size_in_bytes; |
18 const DartWrappableAccepter ref_object; | 18 const DartWrappableAccepter ref_object; |
19 const DartWrappableAccepter deref_object; | 19 const DartWrappableAccepter deref_object; |
20 | 20 |
21 private: | 21 private: |
22 DartWrapperInfo(const DartWrapperInfo&) = delete; | 22 DartWrapperInfo(const DartWrapperInfo&) = delete; |
23 DartWrapperInfo& operator=(const DartWrapperInfo&) = delete; | 23 DartWrapperInfo& operator=(const DartWrapperInfo&) = delete; |
24 }; | 24 }; |
25 | 25 |
26 } // namespace tonic | 26 } // namespace tonic |
27 | 27 |
28 #endif // SKY_ENGINE_TONIC_DART_WRAPPER_INFO_H_ | 28 #endif // TONIC_DART_WRAPPER_INFO_H_ |
OLD | NEW |