5#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_SDK_EXT_SYSTEM_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_SDK_EXT_SYSTEM_H_
8#include <zircon/syscalls.h>
12#include "third_party/dart/runtime/include/dart_api.h"
22 DEFINE_WRAPPERTYPEINFO();
23 FML_FRIEND_REF_COUNTED_THREAD_SAFE(
System);
24 FML_FRIEND_MAKE_REF_COUNTED(
System);
31 std::vector<Handle*> handles);
35 std::vector<HandleDisposition*> handle_dispositions);
69 static void VmoMapFinalizer(
void* isolate_callback_data,
void* peer);
static Dart_Handle ChannelCreate(uint32_t options)
static Dart_Handle SocketCreate(uint32_t options)
static Dart_Handle VmoCreate(uint64_t size, uint32_t options)
static Dart_Handle VmoMap(fml::RefPtr< Handle > vmo)
static zx_status_t VmoWrite(fml::RefPtr< Handle > vmo, uint64_t offset, const tonic::DartByteData &data)
static Dart_Handle SocketWrite(fml::RefPtr< Handle > socket, const tonic::DartByteData &data, int options)
static Dart_Handle VmoRead(fml::RefPtr< Handle > vmo, uint64_t offset, size_t size)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
static uint64_t ClockGetMonotonic()
static Dart_Handle VmoFromFile(std::string path)
static zx_status_t ChannelWriteEtc(fml::RefPtr< Handle > channel, const tonic::DartByteData &data, std::vector< HandleDisposition * > handle_dispositions)
static zx_status_t ConnectToService(std::string path, fml::RefPtr< Handle > channel)
static Dart_Handle ChannelQueryAndReadEtc(fml::RefPtr< Handle > channel)
static Dart_Handle EventpairCreate(uint32_t options)
static Dart_Handle ChannelFromFile(std::string path)
static zx_status_t ChannelWrite(fml::RefPtr< Handle > channel, const tonic::DartByteData &data, std::vector< Handle * > handles)
static Dart_Handle VmoGetSize(fml::RefPtr< Handle > vmo)
static Dart_Handle ChannelQueryAndRead(fml::RefPtr< Handle > channel)
static zx_status_t VmoSetSize(fml::RefPtr< Handle > vmo, uint64_t size)
static Dart_Handle SocketRead(fml::RefPtr< Handle > socket, size_t size)
struct _Dart_Handle * Dart_Handle
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
std::shared_ptr< const fml::Mapping > data