Index: storage/browser/blob/shareable_file_reference.h |
diff --git a/storage/browser/blob/shareable_file_reference.h b/storage/browser/blob/shareable_file_reference.h |
index e2739dcf8604654772991a11d14239c1c20cba23..eb674ef669f9ff064b11667431a095181a1b731d 100644 |
--- a/storage/browser/blob/shareable_file_reference.h |
+++ b/storage/browser/blob/shareable_file_reference.h |
@@ -7,6 +7,7 @@ |
#include <vector> |
+#include "storage/browser/blob/blob_data_item.h" |
#include "storage/browser/blob/scoped_file.h" |
#include "storage/browser/storage_browser_export.h" |
@@ -16,8 +17,7 @@ namespace storage { |
// same path if it already exists in its internal map. |
// This class is non-thread-safe and all methods must be called on a single |
// thread. |
-class STORAGE_EXPORT ShareableFileReference |
- : public base::RefCounted<ShareableFileReference> { |
+class STORAGE_EXPORT ShareableFileReference : public BlobDataItem::DataHandle { |
dmurph
2015/06/05 01:17:23
Can you actually keep this the way it was? And th
gavinp
2015/06/05 15:10:34
I'm totally confused. If we are going to allow spl
|
public: |
typedef ScopedFile::ScopeOutCallback FinalReleaseCallback; |
@@ -60,10 +60,8 @@ class STORAGE_EXPORT ShareableFileReference |
void AddFinalReleaseCallback(const FinalReleaseCallback& callback); |
private: |
- friend class base::RefCounted<ShareableFileReference>; |
- |
ShareableFileReference(ScopedFile scoped_file); |
- ~ShareableFileReference(); |
+ ~ShareableFileReference() override; |
ScopedFile scoped_file_; |