chromium/third_party/openscreen/src/osp/impl/service_publisher_impl.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 "osp/impl/service_publisher_impl.h"

#include <algorithm>
#include <utility>

#include "util/osp_logging.h"

namespace openscreen::osp {
namespace {

bool IsTransitionValid(ServicePublisher::State from,
                       ServicePublisher::State to) {}

}  // namespace

ServicePublisherImpl::Delegate::Delegate() = default;
ServicePublisherImpl::Delegate::~Delegate() = default;

void ServicePublisherImpl::Delegate::SetPublisherImpl(
    ServicePublisherImpl* publisher) {}

ServicePublisherImpl::ServicePublisherImpl(std::unique_ptr<Delegate> delegate)
    :{}

ServicePublisherImpl::~ServicePublisherImpl() = default;

void ServicePublisherImpl::OnError(const Error& error) {}

bool ServicePublisherImpl::Start() {}
bool ServicePublisherImpl::StartAndSuspend() {}
bool ServicePublisherImpl::Stop() {}
bool ServicePublisherImpl::Suspend() {}
bool ServicePublisherImpl::Resume() {}

void ServicePublisherImpl::AddObserver(Observer& observer) {}

void ServicePublisherImpl::RemoveObserver(Observer& observer) {}

void ServicePublisherImpl::OnFatalError(const Error& error) {}

void ServicePublisherImpl::OnRecoverableError(const Error& error) {}

void ServicePublisherImpl::SetState(State state) {}

void ServicePublisherImpl::MaybeNotifyObserver() {}

}  // namespace openscreen::osp