#include "third_party/blink/renderer/core/clipboard/data_object_item.h"
#include "base/time/time.h"
#include "base/unguessable_token.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_data_transfer_token.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/clipboard/clipboard_mime_types.h"
#include "third_party/blink/renderer/core/clipboard/system_clipboard.h"
#include "third_party/blink/renderer/core/fileapi/blob.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/image-encoders/image_encoder.h"
#include "third_party/blink/renderer/platform/network/mime/mime_type_registry.h"
namespace blink {
DataObjectItem* DataObjectItem::CreateFromString(const String& type,
const String& data) { … }
DataObjectItem* DataObjectItem::CreateFromFile(File* file) { … }
DataObjectItem* DataObjectItem::CreateFromFileWithFileSystemId(
File* file,
const String& file_system_id,
scoped_refptr<FileSystemAccessDropData> file_system_access_entry) { … }
DataObjectItem* DataObjectItem::CreateFromURL(const String& url,
const String& title) { … }
DataObjectItem* DataObjectItem::CreateFromHTML(const String& html,
const KURL& base_url) { … }
DataObjectItem* DataObjectItem::CreateFromFileSharedBuffer(
scoped_refptr<SharedBuffer> buffer,
bool is_image_accessible,
const KURL& source_url,
const String& filename_extension,
const AtomicString& content_disposition) { … }
DataObjectItem* DataObjectItem::CreateFromClipboard(
SystemClipboard* system_clipboard,
const String& type,
const ClipboardSequenceNumberToken& sequence_number) { … }
DataObjectItem::DataObjectItem(ItemKind kind, const String& type)
: … { … }
DataObjectItem::DataObjectItem(
ItemKind kind,
const String& type,
const ClipboardSequenceNumberToken& sequence_number,
SystemClipboard* system_clipboard)
: … { … }
File* DataObjectItem::GetAsFile() const { … }
String DataObjectItem::GetAsString() const { … }
bool DataObjectItem::IsFilename() const { … }
bool DataObjectItem::HasFileSystemId() const { … }
String DataObjectItem::FileSystemId() const { … }
bool DataObjectItem::HasFileSystemAccessEntry() const { … }
mojo::PendingRemote<mojom::blink::FileSystemAccessDataTransferToken>
DataObjectItem::CloneFileSystemAccessEntryToken() const { … }
void DataObjectItem::Trace(Visitor* visitor) const { … }
}