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

Side by Side Diff: runtime/bin/vmservice/loader.dart

Issue 2194973004: Fix build. Fix tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | runtime/vm/dart_api_impl.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 (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of vmservice_io; 5 part of vmservice_io;
6 6
7 _sanitizeWindowsPath(path) { 7 _sanitizeWindowsPath(path) {
8 // For Windows we need to massage the paths a bit according to 8 // For Windows we need to massage the paths a bit according to
9 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx 9 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
10 // 10 //
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 msg[3] = libraryUrl; 339 msg[3] = libraryUrl;
340 msg[4] = data; 340 msg[4] = data;
341 sp.send(msg); 341 sp.send(msg);
342 } 342 }
343 343
344 // Send a response to the requesting isolate. 344 // Send a response to the requesting isolate.
345 void _sendExtensionImportResponse(SendPort sp, 345 void _sendExtensionImportResponse(SendPort sp,
346 Uri uri, 346 Uri uri,
347 String libraryUrl, 347 String libraryUrl,
348 String resolvedUri) { 348 String resolvedUri) {
349 var msg = new List(4); 349 var msg = new List(5);
350 int tag = _Dart_kImportExtension; 350 int tag = _Dart_kImportExtension;
351 if (resolvedUri == null) { 351 if (resolvedUri == null) {
352 // We could not resolve the dart-ext: uri. 352 // We could not resolve the dart-ext: uri.
353 tag = -tag; 353 tag = -tag;
354 resolvedUri = 'Could not resolve "$uri" from "$libraryUrl"'; 354 resolvedUri = 'Could not resolve "$uri" from "$libraryUrl"';
355 } 355 }
356 msg[0] = tag; 356 msg[0] = tag;
357 msg[1] = uri.toString(); 357 msg[1] = uri.toString();
358 msg[2] = libraryUrl; 358 msg[2] = resolvedUri;
359 msg[3] = resolvedUri; 359 msg[3] = libraryUrl;
360 msg[4] = resolvedUri;
360 sp.send(msg); 361 sp.send(msg);
361 } 362 }
362 363
363 void _loadHttp(SendPort sp, 364 void _loadHttp(SendPort sp,
364 int tag, 365 int tag,
365 Uri uri, 366 Uri uri,
366 Uri resolvedUri, 367 Uri resolvedUri,
367 String libraryUrl) { 368 String libraryUrl) {
368 if (_httpClient == null) { 369 if (_httpClient == null) {
369 _httpClient = new HttpClient()..maxConnectionsPerHost = 6; 370 _httpClient = new HttpClient()..maxConnectionsPerHost = 6;
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 _log('Unknown scheme (${pathUri.scheme}) in $pathUri.'); 1066 _log('Unknown scheme (${pathUri.scheme}) in $pathUri.');
1066 } 1067 }
1067 _sendExtensionImportResponse(sp, uri, libraryUri, null); 1068 _sendExtensionImportResponse(sp, uri, libraryUri, null);
1068 break; 1069 break;
1069 } 1070 }
1070 break; 1071 break;
1071 default: 1072 default:
1072 _log('Unknown loader request tag=$tag from $isolateId'); 1073 _log('Unknown loader request tag=$tag from $isolateId');
1073 } 1074 }
1074 } 1075 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698