#include "content/browser/renderer_host/data_transfer_util.h"
#include <string>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/containers/span.h"
#include "base/files/file_path.h"
#include "base/strings/utf_string_conversions.h"
#include "base/uuid.h"
#include "build/chromeos_buildflags.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/file_system_access/file_system_access_manager_impl.h"
#include "content/public/browser/browser_thread.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/base/mime_util.h"
#include "services/network/public/mojom/referrer_policy.mojom-shared.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "storage/browser/file_system/external_mount_points.h"
#include "storage/browser/file_system/file_system_context.h"
#include "third_party/blink/public/mojom/blob/serialized_blob.mojom.h"
#include "third_party/blink/public/mojom/drag/drag.mojom.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_data_transfer_token.mojom.h"
#include "ui/base/clipboard/clipboard_constants.h"
#include "ui/base/clipboard/file_info.h"
#include "url/gurl.h"
namespace content {
namespace {
content::FileSystemAccessEntryFactory::PathType MaybeRemapPath(
base::FilePath* entry_path) { … }
}
std::vector<blink::mojom::DataTransferFilePtr> FileInfosToDataTransferFiles(
const std::vector<ui::FileInfo>& filenames,
FileSystemAccessManagerImpl* file_system_access_manager,
int child_id) { … }
std::vector<blink::mojom::DragItemFileSystemFilePtr>
FileSystemFileInfosToDragItemFileSystemFilePtr(
std::vector<DropData::FileSystemFileInfo> file_system_file_infos,
FileSystemAccessManagerImpl* file_system_access_manager,
scoped_refptr<content::ChromeBlobStorageContext> context) { … }
blink::mojom::DragDataPtr DropDataToDragData(
const DropData& drop_data,
FileSystemAccessManagerImpl* file_system_access_manager,
int child_id,
scoped_refptr<ChromeBlobStorageContext> chrome_blob_storage_context) { … }
blink::mojom::DragDataPtr DropMetaDataToDragData(
const std::vector<DropData::Metadata>& drop_meta_data) { … }
DropData DragDataToDropData(const blink::mojom::DragData& drag_data) { … }
}