5#ifndef FLUTTER_RUNTIME_DART_ISOLATE_GROUP_DATA_H_
6#define FLUTTER_RUNTIME_DART_ISOLATE_GROUP_DATA_H_
12#include "flutter/common/settings.h"
13#include "flutter/fml/closure.h"
14#include "flutter/fml/memory/ref_ptr.h"
15#include "flutter/lib/ui/window/platform_configuration.h"
35 std::string advisory_script_uri,
36 std::string advisory_script_entrypoint,
68 int64_t root_isolate_token,
69 std::weak_ptr<PlatformMessageHandler> handler)
override;
73 int64_t root_isolate_token)
const override;
76 std::vector<std::shared_ptr<const fml::Mapping>> kernel_buffers_;
79 const std::string advisory_script_uri_;
80 const std::string advisory_script_entrypoint_;
81 mutable std::mutex child_isolate_preparer_mutex_;
85 std::map<int64_t, std::weak_ptr<PlatformMessageHandler>>
86 platform_message_handlers_;
87 mutable std::mutex platform_message_handlers_mutex_;
fml::RefPtr< const DartSnapshot > GetIsolateSnapshot() const
const fml::closure & GetIsolateShutdownCallback() const
std::vector< std::shared_ptr< const fml::Mapping > > GetKernelBuffers() const
const std::string & GetAdvisoryScriptURI() const
DartIsolateGroupData(const Settings &settings, fml::RefPtr< const DartSnapshot > isolate_snapshot, std::string advisory_script_uri, std::string advisory_script_entrypoint, const ChildIsolatePreparer &child_isolate_preparer, const fml::closure &isolate_create_callback, const fml::closure &isolate_shutdown_callback)
const std::string & GetAdvisoryScriptEntrypoint() const
void SetChildIsolatePreparer(const ChildIsolatePreparer &value)
std::weak_ptr< PlatformMessageHandler > GetPlatformMessageHandler(int64_t root_isolate_token) const override
ChildIsolatePreparer GetChildIsolatePreparer() const
void SetPlatformMessageHandler(int64_t root_isolate_token, std::weak_ptr< PlatformMessageHandler > handler) override
const Settings & GetSettings() const
const fml::closure & GetIsolateCreateCallback() const
void AddKernelBuffer(const std::shared_ptr< const fml::Mapping > &buffer)
Adds a kernel buffer mapping to the kernels loaded for this isolate group.
Represents an instance of a live isolate. An isolate is a separate Dart execution context....
Dart_NativeFunction function
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
std::function< bool(DartIsolate *)> ChildIsolatePreparer
std::function< void()> closure