Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: mojo/dart/embedder/isolate_data.h

Issue 996923003: Dart: Better handle leak checks. close() is async. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/mojo_natives.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/mojo_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698