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

Unified Diff: runtime/bin/process.h

Issue 10963024: Use native fields for process pid and fix bug that allowed killing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review commetns. Created 8 years, 3 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 | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index e1157b3a283c8cba2729373e0dfcf9436ca52cad..f3ef5d87cb1281a9835d402c1b98089c25f32fbd 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -36,6 +36,11 @@ class Process {
static intptr_t CurrentProcessId();
+ static Dart_Handle GetProcessIdNativeField(Dart_Handle process,
+ intptr_t* pid);
+ static Dart_Handle SetProcessIdNativeField(Dart_Handle process,
+ intptr_t pid);
+
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Process);
};
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698