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> | |
sky
2015/03/11 17:17:57
AFAIK if you use std::string then you should inclu
zra
2015/03/11 18:58:19
Added.
| |
10 | 9 |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/macros.h" | 11 #include "base/macros.h" |
13 #include "dart/runtime/include/dart_api.h" | 12 #include "dart/runtime/include/dart_api.h" |
14 | 13 |
15 namespace mojo { | 14 namespace mojo { |
16 namespace dart { | 15 namespace dart { |
17 | 16 |
18 struct IsolateCallbacks { | 17 struct IsolateCallbacks { |
19 base::Callback<Dart_Isolate(const char*,const char*,const char*,void*,char**)> | 18 base::Callback<Dart_Isolate(const char*,const char*,const char*,void*,char**)> |
(...skipping 16 matching lines...) Expand all Loading... | |
36 script(script), | 35 script(script), |
37 script_uri(script_uri), | 36 script_uri(script_uri), |
38 package_root(package_root) {} | 37 package_root(package_root) {} |
39 | 38 |
40 void* app; | 39 void* app; |
41 bool strict_compilation; | 40 bool strict_compilation; |
42 IsolateCallbacks callbacks; | 41 IsolateCallbacks callbacks; |
43 std::string script; | 42 std::string script; |
44 std::string script_uri; | 43 std::string script_uri; |
45 std::string package_root; | 44 std::string package_root; |
45 std::set<int64_t> unclosed_handles; | |
sky
2015/03/11 17:17:57
Is there a reason you don't make this MojoHandle?
zra
2015/03/11 18:58:20
Ah. I was apparently trying to avoid some extra ca
| |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 47 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace dart | 50 } // namespace dart |
51 } // namespace mojo | 51 } // namespace mojo |
52 | 52 |
53 #endif // MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ | 53 #endif // MOJO_DART_EMBEDDER_ISOLATE_DATA_H_ |
OLD | NEW |