blob: 31129332e103ab49c8e94aee0e2a0bb033d828d7 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/browser/blob/blob_handle.h"
namespace storage {
BlobHandle::BlobHandle(mojo::PendingRemote<blink::mojom::Blob> blob)
: blob_(std::move(blob)) {
DCHECK(blob_);
}
mojo::PendingRemote<blink::mojom::Blob> BlobHandle::Clone() const {
mojo::PendingRemote<blink::mojom::Blob> clone;
blob_->Clone(clone.InitWithNewPipeAndPassReceiver());
return clone;
}
BlobHandle::~BlobHandle() = default;
} // namespace storage