#ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_TRACE_UTILS_H_
#define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_TRACE_UTILS_H_
#include <memory>
#include <string>
#include <vector>
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_response.mojom-forward.h"
namespace base {
namespace trace_event {
class TracedValue;
}
}
namespace content {
std::string CacheStorageTracedValue(blink::mojom::CacheStorageError error);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const blink::mojom::FetchAPIRequestPtr& request);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const std::vector<blink::mojom::FetchAPIRequestPtr>& request_list);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const blink::mojom::FetchAPIResponsePtr& response);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const std::vector<blink::mojom::FetchAPIResponsePtr>& response_list);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const blink::mojom::CacheQueryOptionsPtr& options);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const blink::mojom::MultiCacheQueryOptionsPtr& options);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const blink::mojom::BatchOperationPtr& op);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const std::vector<blink::mojom::BatchOperationPtr>& operation_list);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const std::vector<std::u16string> string_list);
std::unique_ptr<base::trace_event::TracedValue> CacheStorageTracedValue(
const std::vector<blink::mojom::CacheEntryPtr>& entries);
}
#endif