mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This patch removes the use of the host messages mojom and switch all message routing over to platform messages.
21 lines
629 B
C++
21 lines
629 B
C++
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/lib/ui/window/platform_message.h"
|
|
|
|
#include <utility>
|
|
|
|
namespace blink {
|
|
|
|
PlatformMessage::PlatformMessage(std::string channel,
|
|
std::vector<uint8_t> data,
|
|
ftl::RefPtr<PlatformMessageResponse> response)
|
|
: channel_(std::move(channel)),
|
|
data_(std::move(data)),
|
|
response_(std::move(response)) {}
|
|
|
|
PlatformMessage::~PlatformMessage() = default;
|
|
|
|
} // namespace blink
|