OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "storage/browser/blob/blob_data_item.h" | 5 #include "storage/browser/blob/blob_data_item.h" |
6 | 6 |
7 namespace storage { | 7 namespace storage { |
8 | 8 |
9 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, | 9 disk_cache::Entry* BlobDataItem::DataHandle::disk_cache_entry() const { |
10 scoped_refptr<ShareableFileReference> file_handle) | 10 return nullptr; |
11 : item_(item.Pass()), file_handle_(file_handle) { | |
12 } | 11 } |
| 12 |
| 13 BlobDataItem::DataHandle::~DataHandle() { |
| 14 } |
| 15 |
13 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) : item_(item.Pass()) { | 16 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) : item_(item.Pass()) { |
14 } | 17 } |
| 18 |
| 19 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, |
| 20 const scoped_refptr<DataHandle>& data_handle) |
| 21 : item_(item.Pass()), |
| 22 data_handle_(data_handle) { |
| 23 } |
| 24 |
| 25 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, |
| 26 const scoped_refptr<DataHandle>& data_handle, |
| 27 int disk_cache_stream_index) |
| 28 : item_(item.Pass()), |
| 29 data_handle_(data_handle), |
| 30 disk_cache_stream_index_(disk_cache_stream_index) { |
| 31 } |
| 32 |
15 BlobDataItem::~BlobDataItem() { | 33 BlobDataItem::~BlobDataItem() { |
16 } | 34 } |
17 | 35 |
18 } // namespace storage | 36 } // namespace storage |
OLD | NEW |