Index: net/base/upload_element_reader.h |
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h |
index 2814efa33f126f62845ff2790a76fa8b5d9438e1..45aa28543e0bfb8ce4e994b98bda809d535bb09c 100644 |
--- a/net/base/upload_element_reader.h |
+++ b/net/base/upload_element_reader.h |
@@ -13,6 +13,7 @@ namespace net { |
class IOBuffer; |
class UploadBytesElementReader; |
+class UploadDiskCacheEntryElementReader; |
class UploadFileElementReader; |
// An interface to read an upload data element. |
@@ -21,6 +22,11 @@ class NET_EXPORT UploadElementReader { |
UploadElementReader() {} |
virtual ~UploadElementReader() {} |
+ // Returns this instance's pointer as UploadDiskCacheEntryElementReader when |
+ // possible, otherwise returns NULL. |
+ virtual const UploadDiskCacheEntryElementReader* |
+ AsDiskCacheEntryReaderForTests() const; |
+ |
// Returns this instance's pointer as UploadBytesElementReader when possible, |
// otherwise returns NULL. |
virtual const UploadBytesElementReader* AsBytesReader() const; |