chromium/third_party/blink/renderer/platform/exported/web_blob_info.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/public/platform/web_blob_info.h"

#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-blink.h"
#include "third_party/blink/renderer/platform/blob/blob_data.h"

namespace blink {

WebBlobInfo::WebBlobInfo(const WebString& uuid,
                         const WebString& type,
                         uint64_t size,
                         CrossVariantMojoRemote<mojom::BlobInterfaceBase> blob)
    :{}

WebBlobInfo::WebBlobInfo(const WebString& uuid,
                         const WebString& file_name,
                         const WebString& type,
                         const std::optional<base::Time>& last_modified,
                         uint64_t size,
                         CrossVariantMojoRemote<mojom::BlobInterfaceBase> blob)
    :{}

// static
WebBlobInfo WebBlobInfo::BlobForTesting(const WebString& uuid,
                                        const WebString& type,
                                        uint64_t size) {}

// static
WebBlobInfo WebBlobInfo::FileForTesting(const WebString& uuid,
                                        const WebString& file_name,
                                        const WebString& type) {}

WebBlobInfo::~WebBlobInfo() {}

WebBlobInfo::WebBlobInfo(const WebBlobInfo& other) {}

WebBlobInfo& WebBlobInfo::operator=(const WebBlobInfo& other) = default;

CrossVariantMojoRemote<mojom::BlobInterfaceBase> WebBlobInfo::CloneBlobRemote()
    const {}

WebBlobInfo::WebBlobInfo(scoped_refptr<BlobDataHandle> handle)
    :{}

WebBlobInfo::WebBlobInfo(scoped_refptr<BlobDataHandle> handle,
                         const WebString& file_name,
                         const std::optional<base::Time>& last_modified)
    :{}

WebBlobInfo::WebBlobInfo(scoped_refptr<BlobDataHandle> handle,
                         const WebString& type,
                         uint64_t size)
    :{}

WebBlobInfo::WebBlobInfo(scoped_refptr<BlobDataHandle> handle,
                         const WebString& file_name,
                         const WebString& type,
                         const std::optional<base::Time>& last_modified,
                         uint64_t size)
    :{}

scoped_refptr<BlobDataHandle> WebBlobInfo::GetBlobHandle() const {}

}  // namespace blink