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 TONIC_DART_VALUE_H_ | 5 #ifndef TONIC_DART_VALUE_H_ |
6 #define TONIC_DART_VALUE_H_ | 6 #define TONIC_DART_VALUE_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "dart/runtime/include/dart_api.h" | 9 #include "mojo/public/third_party/dart/runtime/include/dart_api.h" |
10 #include "tonic/dart_persistent_value.h" | 10 #include "tonic/dart_persistent_value.h" |
11 #include "tonic/dart_state.h" | 11 #include "tonic/dart_state.h" |
12 #include "sky/engine/wtf/PassRefPtr.h" | 12 #include "sky/engine/wtf/PassRefPtr.h" |
13 #include "sky/engine/wtf/RefCounted.h" | 13 #include "sky/engine/wtf/RefCounted.h" |
14 #include "sky/engine/wtf/RefPtr.h" | 14 #include "sky/engine/wtf/RefPtr.h" |
15 | 15 |
16 namespace tonic { | 16 namespace tonic { |
17 | 17 |
18 // DartValue is a convience wrapper around DartPersistentValue that lets clients | 18 // DartValue is a convience wrapper around DartPersistentValue that lets clients |
19 // use RefPtr to keep track of the number of references to the underlying Dart | 19 // use RefPtr to keep track of the number of references to the underlying Dart |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 DartValue(DartState* dart_state, Dart_Handle value); | 56 DartValue(DartState* dart_state, Dart_Handle value); |
57 | 57 |
58 DartPersistentValue dart_value_; | 58 DartPersistentValue dart_value_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(DartValue); | 60 DISALLOW_COPY_AND_ASSIGN(DartValue); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace tonic | 63 } // namespace tonic |
64 | 64 |
65 #endif // TONIC_DART_VALUE_H_ | 65 #endif // TONIC_DART_VALUE_H_ |
OLD | NEW |