Chromium Code Reviews| 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::DataHandle::~DataHandle() { | |
| 10 } | |
| 11 | |
| 12 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) | |
| 13 : item_(item.Pass()), | |
| 14 disk_cache_entry_(nullptr), | |
| 15 disk_cache_stream_index_(-1) { | |
| 16 } | |
| 17 | |
| 9 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, | 18 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, |
| 10 scoped_refptr<ShareableFileReference> file_handle) | 19 const scoped_refptr<DataHandle>& data_handle) |
| 11 : item_(item.Pass()), file_handle_(file_handle) { | 20 : item_(item.Pass()), |
| 21 data_handle_(data_handle), | |
| 22 disk_cache_entry_(nullptr), | |
| 23 disk_cache_stream_index_(-1) { | |
| 12 } | 24 } |
| 13 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) : item_(item.Pass()) { | 25 |
| 26 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, | |
|
mmenke
2015/06/17 19:11:16
What's the conceptual distinction between a BlobDa
dmurph
2015/06/17 20:18:06
DataElement is legacy and is used in other parts o
| |
| 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) { | |
| 14 } | 34 } |
| 35 | |
| 15 BlobDataItem::~BlobDataItem() { | 36 BlobDataItem::~BlobDataItem() { |
| 16 } | 37 } |
| 17 | 38 |
| 18 } // namespace storage | 39 } // namespace storage |
| OLD | NEW |