#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_REPORTING_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_REPORTING_H_
#include <string>
#include "base/logging.h"
#include "third_party/leveldatabase/src/include/leveldb/status.h"
namespace storage {
struct BucketLocator;
}
namespace content {
namespace indexed_db {
constexpr static const char* kBackingStoreActionUmaName = …;
enum IndexedDBBackingStoreErrorSource { … };
enum IndexedDBBackingStoreOpenResult { … };
enum class IndexedDBAction { … };
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);
#define REPORT_ERROR(type, location) …
#define INTERNAL_READ_ERROR(location) …
#define INTERNAL_CONSISTENCY_ERROR(location) …
#define INTERNAL_WRITE_ERROR(location) …
}
}
#endif