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

Side by Side Diff: sky/engine/core/script/dart_service_isolate/main.dart

Issue 1107803002: Add Observatory to sky dart_controller (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
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 library dart_controller_service_isolate; 5 library sky_shell_dart_controller_service_isolate;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:mojo.io'; 9 import 'dart:io';
10 import 'dart:isolate'; 10 import 'dart:isolate';
11 import 'dart:vmservice'; 11 import 'dart:vmservice';
12 12
13 part 'loader.dart'; 13 part 'loader.dart';
14 part 'resources.dart'; 14 part 'resources.dart';
15 part 'server.dart'; 15 part 'server.dart';
16 16
17 // The TCP ip/port that the HTTP server listens on. 17 // The TCP ip/port that the HTTP server listens on.
18 int _port; 18 int _port;
19 String _ip; 19 String _ip;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 } 52 }
53 scriptLoadPort.handler = _processLoadRequest; 53 scriptLoadPort.handler = _processLoadRequest;
54 // It's just here to push an event on the event loop so that we invoke the 54 // It's just here to push an event on the event loop so that we invoke the
55 // scheduled microtasks. 55 // scheduled microtasks.
56 Timer.run(() {}); 56 Timer.run(() {});
57 return scriptLoadPort; 57 return scriptLoadPort;
58 } 58 }
59 59
60 _shutdown() native "ServiceIsolate_Shutdown"; 60 _shutdown() native "ServiceIsolate_Shutdown";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698