#include "third_party/blink/renderer/modules/file_system_access/bucket_file_system_agent.h"
#include "base/barrier_callback.h"
#include "base/barrier_closure.h"
#include "base/functional/bind.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/inspector/inspected_frames.h"
#include "third_party/blink/renderer/core/inspector/protocol/file_system.h"
#include "third_party/blink/renderer/modules/buckets/storage_bucket.h"
#include "third_party/blink/renderer/modules/buckets/storage_bucket_manager.h"
#include "third_party/blink/renderer/modules/file_system_access/bucket_file_system_builder.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
namespace blink {
BucketFileSystemAgent::BucketFileSystemAgent(InspectedFrames* inspected_frames)
: … { … }
BucketFileSystemAgent::~BucketFileSystemAgent() = default;
protocol::Response BucketFileSystemAgent::HandleError(
mojom::blink::FileSystemAccessErrorPtr error) { … }
void BucketFileSystemAgent::getDirectory(
std::unique_ptr<protocol::FileSystem::BucketFileSystemLocator>
file_system_locator,
std::unique_ptr<protocol::FileSystem::Backend::GetDirectoryCallback>
callback) { … }
void BucketFileSystemAgent::DidGetDirectoryHandle(
ExecutionContext* execution_context,
const String& storage_key,
const String& directory_name,
std::unique_ptr<protocol::FileSystem::Backend::GetDirectoryCallback>
callback,
mojom::blink::FileSystemAccessErrorPtr result,
FileSystemDirectoryHandle* handle) { … }
void BucketFileSystemAgent::Trace(Visitor* visitor) const { … }
StorageBucket* BucketFileSystemAgent::GetStorageBucket(
const String& storage_key,
const String& bucket_name) { … }
}