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() { | 9 BlobDataItem::DataHandle::~DataHandle() { |
10 } | 10 } |
(...skipping 18 matching lines...) Expand all Loading... |
29 int disk_cache_stream_index) | 29 int disk_cache_stream_index) |
30 : item_(item.Pass()), | 30 : item_(item.Pass()), |
31 data_handle_(data_handle), | 31 data_handle_(data_handle), |
32 disk_cache_entry_(entry), | 32 disk_cache_entry_(entry), |
33 disk_cache_stream_index_(disk_cache_stream_index) { | 33 disk_cache_stream_index_(disk_cache_stream_index) { |
34 } | 34 } |
35 | 35 |
36 BlobDataItem::~BlobDataItem() { | 36 BlobDataItem::~BlobDataItem() { |
37 } | 37 } |
38 | 38 |
| 39 std::ostream& operator<<(std::ostream& os, const BlobDataItem& x) { |
| 40 os << "<BlobDataItem>{item: " << x.data_element() |
| 41 << ", has_data_handle: " << (x.data_handle_.get() ? "true" : "false") |
| 42 << ", disk_cache_entry_ptr: " << x.disk_cache_entry_ |
| 43 << ", disk_cache_stream_index_: " << x.disk_cache_stream_index_ << "}"; |
| 44 return os; |
| 45 } |
| 46 |
39 } // namespace storage | 47 } // namespace storage |
OLD | NEW |