Flutter Engine
Loading...
Searching...
No Matches
platform_message_response_dart_port.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_DART_PORT_H_
6
#define FLUTTER_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_DART_PORT_H_
7
8
#include "
flutter/fml/message_loop.h
"
9
#include "
flutter/lib/ui/window/platform_message_response.h
"
10
#include "
third_party/tonic/dart_persistent_value.h
"
11
12
namespace
flutter
{
13
14
/// A \ref PlatformMessageResponse that will respond over a Dart port.
15
class
PlatformMessageResponseDartPort
:
public
PlatformMessageResponse
{
16
FML_FRIEND_MAKE_REF_COUNTED
(
PlatformMessageResponseDartPort
);
17
18
public
:
19
// Callable on any thread.
20
void
Complete
(std::unique_ptr<fml::Mapping>
data
)
override
;
21
void
CompleteEmpty
()
override
;
22
23
protected
:
24
explicit
PlatformMessageResponseDartPort
(Dart_Port send_port,
25
int64_t identifier,
26
const
std::string&
channel
);
27
28
Dart_Port
send_port_
;
29
int64_t
identifier_
;
30
const
std::string
channel_
;
31
};
32
33
}
// namespace flutter
34
35
#endif
// FLUTTER_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_DART_PORT_H_
flutter::PlatformMessageResponseDartPort
A PlatformMessageResponse that will respond over a Dart port.
Definition
platform_message_response_dart_port.h:15
flutter::PlatformMessageResponseDartPort::CompleteEmpty
void CompleteEmpty() override
Definition
platform_message_response_dart_port.cc:56
flutter::PlatformMessageResponseDartPort::Complete
void Complete(std::unique_ptr< fml::Mapping > data) override
Definition
platform_message_response_dart_port.cc:29
flutter::PlatformMessageResponseDartPort::identifier_
int64_t identifier_
Definition
platform_message_response_dart_port.h:29
flutter::PlatformMessageResponseDartPort::send_port_
Dart_Port send_port_
Definition
platform_message_response_dart_port.h:28
flutter::PlatformMessageResponseDartPort::channel_
const std::string channel_
Definition
platform_message_response_dart_port.h:30
flutter::PlatformMessageResponse
Definition
platform_message_response.h:17
dart_persistent_value.h
channel
const gchar * channel
Definition
fl_mock_binary_messenger.cc:204
message_loop.h
flutter
Definition
asset_manager.cc:10
flutter::data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition
switch_defs.h:36
platform_message_response.h
FML_FRIEND_MAKE_REF_COUNTED
#define FML_FRIEND_MAKE_REF_COUNTED(T)
Definition
ref_counted.h:132
lib
ui
window
platform_message_response_dart_port.h
Generated on Thu Nov 6 2025 16:11:25 for Flutter Engine by
1.9.8