chromium/components/update_client/ping_manager.cc

// Copyright 2014 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/update_client/ping_manager.h"

#include <stddef.h>

#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "components/update_client/component.h"
#include "components/update_client/configurator.h"
#include "components/update_client/persisted_data.h"
#include "components/update_client/protocol_definition.h"
#include "components/update_client/protocol_handler.h"
#include "components/update_client/protocol_serializer.h"
#include "components/update_client/request_sender.h"
#include "components/update_client/utils.h"
#include "url/gurl.h"

namespace update_client {

namespace {

const int kErrorNoEvents =;
const int kErrorNoUrl =;

// An instance of this class can send only one ping.
class PingSender : public base::RefCountedThreadSafe<PingSender> {};

PingSender::PingSender(scoped_refptr<Configurator> config) :{}

PingSender::~PingSender() = default;

void PingSender::SendPing(const Component& component,
                          const PersistedData& metadata,
                          Callback callback) {}

void PingSender::SendPingComplete(int error,
                                  const std::string& response,
                                  int retry_after_sec) {}

}  // namespace

PingManager::PingManager(scoped_refptr<Configurator> config)
    :{}

PingManager::~PingManager() {}

void PingManager::SendPing(const Component& component,
                           const PersistedData& metadata,
                           Callback callback) {}

}  // namespace update_client