chromium/components/reporting/util/disconnectable_client.h

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

#ifndef COMPONENTS_REPORTING_UTIL_DISCONNECTABLE_CLIENT_H_
#define COMPONENTS_REPORTING_UTIL_DISCONNECTABLE_CLIENT_H_

#include <memory>

#include "base/containers/fixed_flat_map.h"
#include "base/functional/callback.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/thread_annotations.h"
#include "components/reporting/util/status.h"

namespace reporting {

namespace disconnectable_client {
constexpr char kErrorServiceUnavailable[] =;
}

// Client connection class that handles possible disconnections.
// When the service is not available, calls are immediately responded with
// failure, including those started beforewhen the connection was available.
class DisconnectableClient {};

}  // namespace reporting

#endif  // COMPONENTS_REPORTING_UTIL_DISCONNECTABLE_CLIENT_H_