Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / storage / browser / blob / blob_data_item.cc
blobc1ec3b3db68fadb7930d5cdcb022610cbb924037
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"
7 namespace storage {
9 BlobDataItem::DataHandle::~DataHandle() {
12 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item)
13 : item_(item.Pass()),
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)
20 : item_(item.Pass()),
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)
30 : item_(item.Pass()),
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