chromium/components/media_router/common/providers/cast/channel/cast_socket_service.cc

// Copyright 2017 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/media_router/common/providers/cast/channel/cast_socket_service.h"

#include "base/memory/ptr_util.h"
#include "base/numerics/checked_math.h"
#include "base/observer_list.h"
#include "base/ranges/algorithm.h"
#include "components/media_router/common/providers/cast/channel/cast_socket.h"
#include "components/media_router/common/providers/cast/channel/logger.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"

BrowserThread;

namespace cast_channel {

// static
CastSocketService* CastSocketService::GetInstance() {}

CastSocketService::CastSocketService()
    :{}

CastSocketService::~CastSocketService() = default;

int CastSocketServiceImpl::last_channel_id_ =;

CastSocketServiceImpl::CastSocketServiceImpl() = default;

// This is a leaky singleton and the dtor won't be called.
CastSocketServiceImpl::~CastSocketServiceImpl() = default;

CastSocket* CastSocketServiceImpl::AddSocket(
    std::unique_ptr<CastSocket> socket) {}

std::unique_ptr<CastSocket> CastSocketServiceImpl::RemoveSocket(
    int channel_id) {}

void CastSocketService::CloseSocket(int channel_id) {}

CastSocket* CastSocketServiceImpl::GetSocket(int channel_id) const {}

CastSocket* CastSocketServiceImpl::GetSocket(
    const net::IPEndPoint& ip_endpoint) const {}

void CastSocketServiceImpl::OpenSocket(
    network::NetworkContextGetter network_context_getter,
    const CastSocketOpenParams& open_params,
    CastSocket::OnOpenCallback open_cb) {}

void CastSocketServiceImpl::AddObserver(CastSocket::Observer* observer) {}

void CastSocketServiceImpl::RemoveObserver(CastSocket::Observer* observer) {}

}  // namespace cast_channel