#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_BUILDER_H_
#define STORAGE_BROWSER_BLOB_BLOB_DATA_BUILDER_H_
#include <stddef.h>
#include <stdint.h>
#include <ostream>
#include <string>
#include <vector>
#include "base/component_export.h"
#include "base/files/file_path.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/numerics/checked_math.h"
#include "components/file_access/scoped_file_access_delegate.h"
#include "components/services/storage/public/mojom/blob_storage_context.mojom.h"
#include "storage/browser/blob/blob_data_item.h"
#include "storage/browser/blob/blob_data_snapshot.h"
#include "storage/browser/blob/blob_entry.h"
#include "storage/browser/blob/shareable_blob_data_item.h"
#include "storage/browser/blob/shareable_file_reference.h"
#include "storage/browser/file_system/file_system_context.h"
namespace storage {
class BlobSliceTest;
class BlobStorageContext;
class BlobStorageRegistry;
class FileSystemURL;
class COMPONENT_EXPORT(STORAGE_BROWSER) BlobDataBuilder { … };
#if defined(UNIT_TEST)
inline bool operator==(const BlobDataSnapshot& a, const BlobDataBuilder& b) {
return a == *b.CreateSnapshot();
}
inline bool operator==(const BlobDataBuilder& a, const BlobDataBuilder& b) {
return *a.CreateSnapshot() == b;
}
inline bool operator==(const BlobDataBuilder& a, const BlobDataSnapshot& b) {
return b == a;
}
inline bool operator!=(const BlobDataSnapshot& a, const BlobDataBuilder& b) {
return !(a == b);
}
inline bool operator!=(const BlobDataBuilder& a, const BlobDataBuilder& b) {
return !(a == b);
}
inline bool operator!=(const BlobDataBuilder& a, const BlobDataSnapshot& b) {
return b != a;
}
#endif
}
#endif