5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_HANDLER_ANDROID_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_HANDLER_ANDROID_H_
11#include <unordered_map>
13#include "flutter/lib/ui/window/platform_message.h"
14#include "flutter/shell/common/platform_message_handler.h"
15#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
21 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
28 std::unique_ptr<fml::Mapping> mapping)
override;
33 const std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
34 std::atomic<int> next_response_id_ = 1;
35 std::unordered_map<int, fml::RefPtr<flutter::PlatformMessageResponse>>
37 std::mutex pending_responses_mutex_;