chromium/components/cast_streaming/common/message_serialization.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/cast_streaming/common/message_serialization.h"

#include <optional>

#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/values.h"

namespace cast_streaming {

const char kMirroringNamespace[] =;
const char kRemotingNamespace[] =;
const char kSystemNamespace[] =;
const char kInjectNamespace[] =;
const char kMediaNamespace[] =;

const char kKeySenderId[] =;
const char kKeyNamespace[] =;
const char kKeyData[] =;
const char kKeyType[] =;
const char kKeyRequestId[] =;
const char kKeyCode[] =;
const char kKeyStatus[] =;

const char kValueSystemSenderId[] =;
const char kValueWrapped[] =;
const char kValueError[] =;
const char kValueWrappedError[] =;
const char kValueMediaPlay[] =;
const char kValueMediaPause[] =;
const char kValueMediaGetStatus[] =;
const char kValueMediaStatus[] =;

const char kValueInjectNotSupportedError[] =;

const char kInitialConnectMessage[] =;

bool DeserializeCastMessage(std::string_view buffer,
                            std::string* sender_id,
                            std::string* message_namespace,
                            std::string* message) {}

std::string SerializeCastMessage(const std::string& sender_id,
                                 const std::string& message_namespace,
                                 const std::string& message) {}

}  // namespace cast_streaming