2844eb86ca
- Provide a new callback to Dart_Initialize that will be called when the service isolate needs the Observatory assets - Move asset management code out of embedder and into common dart:_vmservice - Use the tar format as the archive format - Add build script to generate .cc file containing the archive - Add a simple tar parser to service isolate This makes it possible for embedders to not bake Observatory into their executable but instead load it off disk or over the network. The standalone embedder still links Observatory into the executable. R=rmacnak@google.com Review URL: https://codereview.chromium.org/1411853003 .
13 lines
732 B
Dart
13 lines
732 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
patch bool sendIsolateServiceMessage(SendPort sp, List m)
|
|
native "VMService_SendIsolateServiceMessage";
|
|
patch void sendRootServiceMessage(List m)
|
|
native "VMService_SendRootServiceMessage";
|
|
patch void _onStart() native "VMService_OnStart";
|
|
patch void _onExit() native "VMService_OnExit";
|
|
patch bool _vmListenStream(String streamId) native "VMService_ListenStream";
|
|
patch void _vmCancelStream(String streamId) native "VMService_CancelStream";
|
|
patch Uint8List _requestAssets() native "VMService_RequestAssets"; |