#include "content/browser/indexed_db/indexed_db_reporting.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/leveldatabase/env_chromium.h"
namespace content {
namespace indexed_db {
namespace {
std::string BucketLocatorToCustomHistogramSuffix(
const storage::BucketLocator& bucket_locator) { … }
void ParseAndReportIOErrorDetails(const std::string& histogram_name,
const leveldb::Status& s) { … }
void ParseAndReportCorruptionDetails(const std::string& histogram_name,
const leveldb::Status& status) { … }
}
void ReportOpenStatus(IndexedDBBackingStoreOpenResult result,
const storage::BucketLocator& bucket_locator) { … }
void ReportInternalError(const char* type,
IndexedDBBackingStoreErrorSource location) { … }
void ReportLevelDBError(const std::string& histogram_name,
const leveldb::Status& s) { … }
}
}