5#ifndef FLUTTER_LIB_UI_PLUGINS_CALLBACK_CACHE_H_
6#define FLUTTER_LIB_UI_PLUGINS_CALLBACK_CACHE_H_
13#include "flutter/fml/macros.h"
14#include "third_party/dart/runtime/include/dart_api.h"
31 const std::string& library_path);
43 const std::string& library_path);
45 static void SaveCacheToDisk();
47 static std::mutex mutex_;
48 static std::string cache_path_;
50 static std::map<int64_t, DartCallbackRepresentation> cache_;
static std::unique_ptr< DartCallbackRepresentation > GetCallbackInformation(int64_t handle)
static int64_t GetCallbackHandle(const std::string &name, const std::string &class_name, const std::string &library_path)
static void LoadCacheFromDisk()
static Dart_Handle GetCallback(int64_t handle)
static void SetCachePath(const std::string &path)
static std::string GetCachePath()
struct _Dart_Handle * Dart_Handle
const char *const class_name
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
DEF_SWITCHES_START aot vmservice shared library name