// Copyright 2018 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 "ipc/message_view.h" namespace IPC { MessageView::MessageView() = default; MessageView::MessageView( const Message& message, base::Optional> handles) : buffer_view_(base::make_span( static_cast(message.data()), message.size())), handles_(std::move(handles)) {} MessageView::MessageView( mojo_base::BigBufferView buffer_view, base::Optional> handles) : buffer_view_(std::move(buffer_view)), handles_(std::move(handles)) {} MessageView::MessageView(MessageView&&) = default; MessageView::~MessageView() = default; MessageView& MessageView::operator=(MessageView&&) = default; } // namespace IPC