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

Side by Side Diff: runtime/bin/vmservice/observatory/lib/service_io.dart

Issue 773573005: vmservice: basic object graph serialization. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 service_io; 5 library service_io;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 void close() { 44 void close() {
45 if (_webSocket != null) { 45 if (_webSocket != null) {
46 _webSocket.close(); 46 _webSocket.close();
47 } 47 }
48 } 48 }
49 49
50 Future<ByteData> nonStringToByteData(dynamic data) { 50 Future<ByteData> nonStringToByteData(dynamic data) {
51 assert(data is Uint8List); 51 assert(data is Uint8List);
52 print('nonString: ${data.lengthInBytes}, $data'); 52 print('nonString: ${data.lengthInBytes}');
Cutch 2014/12/02 16:46:26 Remove this or make it into a log call.
koda 2014/12/02 18:47:12 Done.
53 return new Future.sync(() => 53 return new Future.sync(() =>
54 new ByteData.view(data.buffer, 54 new ByteData.view(data.buffer,
55 data.offsetInBytes, 55 data.offsetInBytes,
56 data.lengthInBytes)); 56 data.lengthInBytes));
57 } 57 }
58 } 58 }
59 59
60 /// The [WebSocketVM] communicates with a Dart VM over WebSocket. The Dart VM 60 /// The [WebSocketVM] communicates with a Dart VM over WebSocket. The Dart VM
61 /// can be embedded in Chromium or standalone. In the case of Chromium, we 61 /// can be embedded in Chromium or standalone. In the case of Chromium, we
62 /// make the service requests via the Chrome Remote Debugging Protocol. 62 /// make the service requests via the Chrome Remote Debugging Protocol.
63 class WebSocketVM extends CommonWebSocketVM { 63 class WebSocketVM extends CommonWebSocketVM {
64 WebSocketVM(WebSocketVMTarget target) : super(target, new _IOWebSocket()); 64 WebSocketVM(WebSocketVMTarget target) : super(target, new _IOWebSocket());
65 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698