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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/isolate_data.h
diff --git a/mojo/dart/embedder/isolate_data.h b/mojo/dart/embedder/isolate_data.h
index bd29fe1ab2b2fef266f55806abb1c5d76f4a454a..24cbd7ebf32121075efba9dd17b5d1561da432fb 100644
--- a/mojo/dart/embedder/isolate_data.h
+++ b/mojo/dart/embedder/isolate_data.h
@@ -5,12 +5,13 @@
#ifndef MOJO_DART_EMBEDDER_ISOLATE_DATA_H_
#define MOJO_DART_EMBEDDER_ISOLATE_DATA_H_
-#include <stdlib.h>
-#include <string.h>
+#include <set>
+#include <string>
#include "base/callback.h"
#include "base/macros.h"
#include "dart/runtime/include/dart_api.h"
+#include "mojo/public/c/system/types.h"
namespace mojo {
namespace dart {
@@ -43,6 +44,7 @@ class IsolateData {
std::string script;
std::string script_uri;
std::string package_root;
+ std::set<MojoHandle> unclosed_handles;
DISALLOW_COPY_AND_ASSIGN(IsolateData);
};
« 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