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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/io_patch.dart

Issue 895623002: Add support for killing a process with a given PID to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/process_patch.dart ('k') | sdk/lib/io/process.dart » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
6 6
7 @patch 7 @patch
8 class _Directory { 8 class _Directory {
9 @patch 9 @patch
10 static _current() { 10 static _current() {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 String executable, 298 String executable,
299 List<String> arguments, 299 List<String> arguments,
300 {String workingDirectory, 300 {String workingDirectory,
301 Map<String, String> environment, 301 Map<String, String> environment,
302 bool includeParentEnvironment: true, 302 bool includeParentEnvironment: true,
303 bool runInShell: false, 303 bool runInShell: false,
304 Encoding stdoutEncoding: SYSTEM_ENCODING, 304 Encoding stdoutEncoding: SYSTEM_ENCODING,
305 Encoding stderrEncoding: SYSTEM_ENCODING}) { 305 Encoding stderrEncoding: SYSTEM_ENCODING}) {
306 throw new UnsupportedError("Process.runSync"); 306 throw new UnsupportedError("Process.runSync");
307 } 307 }
308
309 @patch
310 static bool killPid(
311 int pid, [ProcessSignal signal = ProcessSignal.SIGTERM]) {
312 throw new UnsupportedError("Process.killPid");
313 }
308 } 314 }
309 315
310 @patch 316 @patch
311 class InternetAddress { 317 class InternetAddress {
312 @patch 318 @patch
313 static InternetAddress get LOOPBACK_IP_V4 { 319 static InternetAddress get LOOPBACK_IP_V4 {
314 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4"); 320 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4");
315 } 321 }
316 @patch 322 @patch
317 static InternetAddress get LOOPBACK_IP_V6 { 323 static InternetAddress get LOOPBACK_IP_V6 {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 528 }
523 } 529 }
524 530
525 @patch 531 @patch
526 class _IOService { 532 class _IOService {
527 @patch 533 @patch
528 static Future _dispatch(int request, List data) { 534 static Future _dispatch(int request, List data) {
529 throw new UnsupportedError("_IOService._dispatch"); 535 throw new UnsupportedError("_IOService._dispatch");
530 } 536 }
531 } 537 }
OLDNEW
« no previous file with comments | « runtime/bin/process_patch.dart ('k') | sdk/lib/io/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698