OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ | 5 #ifndef MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ |
6 #define MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ | 6 #define MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ |
7 | 7 |
8 #include <stdlib.h> | 8 #include <set> |
9 #include <string.h> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "dart/runtime/include/dart_api.h" | 13 #include "dart/runtime/include/dart_api.h" |
| 14 #include "mojo/public/c/system/types.h" |
14 | 15 |
15 namespace mojo { | 16 namespace mojo { |
16 namespace dart { | 17 namespace dart { |
17 | 18 |
18 struct IsolateCallbacks { | 19 struct IsolateCallbacks { |
19 base::Callback<Dart_Isolate(const char*,const char*,const char*,void*,char**)> | 20 base::Callback<Dart_Isolate(const char*,const char*,const char*,void*,char**)> |
20 create; | 21 create; |
21 base::Callback<void(void*)> shutdown; | 22 base::Callback<void(void*)> shutdown; |
22 base::Callback<void(Dart_Handle)> exception; | 23 base::Callback<void(Dart_Handle)> exception; |
23 }; | 24 }; |
(...skipping 12 matching lines...) Expand all Loading... |
36 script(script), | 37 script(script), |
37 script_uri(script_uri), | 38 script_uri(script_uri), |
38 package_root(package_root) {} | 39 package_root(package_root) {} |
39 | 40 |
40 void* app; | 41 void* app; |
41 bool strict_compilation; | 42 bool strict_compilation; |
42 IsolateCallbacks callbacks; | 43 IsolateCallbacks callbacks; |
43 std::string script; | 44 std::string script; |
44 std::string script_uri; | 45 std::string script_uri; |
45 std::string package_root; | 46 std::string package_root; |
| 47 std::set<MojoHandle> unclosed_handles; |
46 | 48 |
47 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 49 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace dart | 52 } // namespace dart |
51 } // namespace mojo | 53 } // namespace mojo |
52 | 54 |
53 #endif // MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ | 55 #endif // MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ |
OLD | NEW |