#include "third_party/blink/renderer/core/fileapi/file_backed_blob_factory_dispatcher.h"
#include "mojo/public/cpp/bindings/pending_associated_receiver.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/blob/file_backed_blob_factory.mojom-blink.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace blink {
namespace {
mojom::blink::FileBackedBlobFactory* GetFileBackedBlobFactory(
HeapMojoRemote<mojom::blink::FileBackedBlobFactory>& remote,
ExecutionContext* execution_context) { … }
mojom::blink::FileBackedBlobFactory* GetFileBackedBlobFactory(
HeapMojoAssociatedRemote<mojom::blink::FileBackedBlobFactory>& remote,
ExecutionContext* execution_context,
LocalFrame* frame) { … }
}
FileBackedBlobFactoryDispatcher::FileBackedBlobFactoryDispatcher(
ExecutionContext& context)
: … { … }
mojom::blink::FileBackedBlobFactory*
FileBackedBlobFactoryDispatcher::GetFileBackedBlobFactory(
ExecutionContext* context) { … }
void FileBackedBlobFactoryDispatcher::SetFileBackedBlobFactoryForTesting(
mojo::PendingAssociatedRemote<mojom::blink::FileBackedBlobFactory>
factory) { … }
void FileBackedBlobFactoryDispatcher::FlushForTesting() { … }
void FileBackedBlobFactoryDispatcher::Trace(Visitor* visitor) const { … }
FileBackedBlobFactoryDispatcher* FileBackedBlobFactoryDispatcher::From(
ExecutionContext& context) { … }
mojom::blink::FileBackedBlobFactory*
FileBackedBlobFactoryDispatcher::GetFileBackedBlobFactory() { … }
const char FileBackedBlobFactoryDispatcher::kSupplementName[] = …;
}