#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 = …;
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) { … }
}
PingManager::PingManager(scoped_refptr<Configurator> config)
: … { … }
PingManager::~PingManager() { … }
void PingManager::SendPing(const Component& component,
const PersistedData& metadata,
Callback callback) { … }
}