5#include "flutter/lib/io/dart_io.h"
7#include "flutter/fml/logging.h"
8#include "third_party/dart/runtime/include/bin/dart_io_api.h"
9#include "third_party/dart/runtime/include/dart_api.h"
19 const std::string& domain_network_policy) {
27 dart_validate_args[0] =
ToDart(may_insecurely_connect_to_all_domains);
30 1, dart_validate_args);
35 http_lib,
ToDart(
"_httpConnectionHook"), http_connection_hook_closure);
static void InitForIsolate(bool may_insecurely_connect_to_all_domains, const std::string &domain_network_policy)
DART_EXPORT Dart_Handle Dart_SetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver resolver, Dart_NativeEntrySymbol symbol)
struct _Dart_Handle * Dart_Handle
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value)
#define FML_CHECK(condition)
Dart_NativeFunction LookupIONative(Dart_Handle name, int argument_count, bool *auto_setup_scope)
const uint8_t * LookupIONativeSymbol(Dart_NativeFunction nf)
Dart_Handle ToDart(const T &object)
bool CheckAndHandleError(Dart_Handle handle)