chromium/chrome/browser/media/router/mojo/media_sink_service_status.cc

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

#include "chrome/browser/media/router/mojo/media_sink_service_status.h"

#include "base/json/json_string_value_serializer.h"
#include "base/strings/strcat.h"
#include "components/media_router/browser/log_util.h"

namespace media_router {

namespace {

constexpr size_t kMaxAvailableSinksSize =;

// Helper function to convert `value` to JSON string.
std::string ToJSONString(const base::Value::Dict& value) {}

// Helper function to convert `sink_internal` to JSON format represented by
// base::Value::Dict.
base::Value::Dict ToValue(const MediaSinkInternal& sink_internal) {}

// Helper function to convert `sinks` to JSON format represented by
// base::Value::Dict. The key is the source id and the value is a list of
// sinks represented by base::Value::Dict.
base::Value::Dict ConvertDiscoveredSinksToValues(
    const base::flat_map<std::string, std::vector<MediaSinkInternal>>& sinks) {}

// Helper function to convert `available_sinks` to a dictionary of availability
// strings in JSON format represented by base::Value::Dict. The key is the
// source id and the value is a list of sink ids.
base::Value::Dict ConvertAvailableSinksToValues(
    const base::LRUCache<std::string, std::vector<MediaSinkInternal>>&
        available_sinks) {}

}  // namespace

MediaSinkServiceStatus::MediaSinkServiceStatus()
    :{}
MediaSinkServiceStatus::~MediaSinkServiceStatus() = default;

void MediaSinkServiceStatus::UpdateDiscoveredSinks(
    const std::string& provider_name,
    const std::vector<MediaSinkInternal>& discovered_sinks) {}

void MediaSinkServiceStatus::UpdateAvailableSinks(
    mojom::MediaRouteProviderId provider_id,
    const std::string& media_source,
    const std::vector<MediaSinkInternal>& available_sinks) {}

base::Value::Dict MediaSinkServiceStatus::GetStatusAsValue() const {}

std::string MediaSinkServiceStatus::GetStatusAsJSONString() const {}

}  // namespace media_router