1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "storage/browser/blob/blob_data_item.h"
9 BlobDataItem::DataHandle::~DataHandle() {
12 BlobDataItem::BlobDataItem(scoped_ptr
<DataElement
> item
)
14 disk_cache_entry_(nullptr),
15 disk_cache_stream_index_(-1) {
18 BlobDataItem::BlobDataItem(scoped_ptr
<DataElement
> item
,
19 const scoped_refptr
<DataHandle
>& data_handle
)
21 data_handle_(data_handle
),
22 disk_cache_entry_(nullptr),
23 disk_cache_stream_index_(-1) {
26 BlobDataItem::BlobDataItem(scoped_ptr
<DataElement
> item
,
27 const scoped_refptr
<DataHandle
>& data_handle
,
28 disk_cache::Entry
* entry
,
29 int disk_cache_stream_index
)
31 data_handle_(data_handle
),
32 disk_cache_entry_(entry
),
33 disk_cache_stream_index_(disk_cache_stream_index
) {
36 BlobDataItem::~BlobDataItem() {
39 } // namespace storage