blob: c0d7c632ab0668e41f6808fb464b6fbbcd512843 [file]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PDF_MESSAGE_UTIL_H_
#define PDF_MESSAGE_UTIL_H_
#include "base/values.h"
namespace chrome_pdf {
// Prepares messages from the plugin that reply to messages from the embedder.
// If the "type" value of `message` is "foo", then the reply "type" will be
// "fooReply". The `message` from the embedder must have a "messageId" value
// that will be copied to the reply message.
base::DictValue PrepareReplyMessage(const base::DictValue& message);
} // namespace chrome_pdf
#endif // PDF_MESSAGE_UTIL_H_