Index: storage/browser/blob/blob_data_item.h |
diff --git a/storage/browser/blob/blob_data_item.h b/storage/browser/blob/blob_data_item.h |
index 5b25db4db0f1b60990e47c54c23048250d11f1ea..3cf503b049e98b33e26f6a8581c3c06075f2d47c 100644 |
--- a/storage/browser/blob/blob_data_item.h |
+++ b/storage/browser/blob/blob_data_item.h |
@@ -5,6 +5,8 @@ |
#ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_ITEM_H_ |
#define STORAGE_BROWSER_BLOB_BLOB_DATA_ITEM_H_ |
+#include <ostream> |
+ |
#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
#include "storage/browser/storage_browser_export.h" |
@@ -50,6 +52,7 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> { |
} |
const DataElement& data_element() const { return *item_; } |
const DataElement* data_element_ptr() const { return item_.get(); } |
+ DataElement* data_element_ptr() { return item_.get(); } |
disk_cache::Entry* disk_cache_entry() const { return disk_cache_entry_; } |
int disk_cache_stream_index() const { return disk_cache_stream_index_; } |
@@ -58,6 +61,7 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> { |
friend class BlobDataBuilder; |
friend class BlobStorageContext; |
friend class base::RefCounted<BlobDataItem>; |
+ friend std::ostream& operator<<(std::ostream& os, const BlobDataItem& x); |
BlobDataItem(scoped_ptr<DataElement> item); |
BlobDataItem(scoped_ptr<DataElement> item, |
@@ -77,6 +81,9 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> { |
int disk_cache_stream_index_; // For TYPE_DISK_CACHE_ENTRY. |
}; |
+STORAGE_EXPORT std::ostream& operator<<(std::ostream& os, |
+ const BlobDataItem& x); |
+ |
#if defined(UNIT_TEST) |
inline bool operator==(const BlobDataItem& a, const BlobDataItem& b) { |
return a.disk_cache_entry() == b.disk_cache_entry() && |