Flutter Engine
The Flutter Engine
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"
11
12namespace flutter {
13
14/// A \ref PlatformMessageResponse that will respond over a Dart port.
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:
25 int64_t identifier,
26 const std::string& channel);
27
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_
A PlatformMessageResponse that will respond over a Dart port.
void Complete(std::unique_ptr< fml::Mapping > data) override
PlatformMessageResponseDartPort(Dart_Port send_port, int64_t identifier, const std::string &channel)
static SkString identifier(const FontFamilyDesc &family, const FontDesc &font)
int64_t Dart_Port
Definition: dart_api.h:1525
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: switches.h:41