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 #include "flutter/lib/ui/window/platform_message.h"
6
7 #include <utility>
8
9 namespace flutter {
10
PlatformMessage(std::string channel,std::vector<uint8_t> data,fml::RefPtr<PlatformMessageResponse> response)11 PlatformMessage::PlatformMessage(std::string channel,
12 std::vector<uint8_t> data,
13 fml::RefPtr<PlatformMessageResponse> response)
14 : channel_(std::move(channel)),
15 data_(std::move(data)),
16 hasData_(true),
17 response_(std::move(response)) {}
PlatformMessage(std::string channel,fml::RefPtr<PlatformMessageResponse> response)18 PlatformMessage::PlatformMessage(std::string channel,
19 fml::RefPtr<PlatformMessageResponse> response)
20 : channel_(std::move(channel)),
21 data_(),
22 hasData_(false),
23 response_(std::move(response)) {}
24
25 PlatformMessage::~PlatformMessage() = default;
26
27 } // namespace flutter
28