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..a8f3d94305c7f17480fd31d59b0c8ac24d0ee29b 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,8 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> { |
friend class BlobDataBuilder; |
friend class BlobStorageContext; |
friend class base::RefCounted<BlobDataItem>; |
+ friend STORAGE_EXPORT std::ostream& operator<<(std::ostream& os, |
+ const BlobDataItem& x); |
BlobDataItem(scoped_ptr<DataElement> item); |
BlobDataItem(scoped_ptr<DataElement> item, |