Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: net/base/upload_element_reader.h

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: omg, fix the correct base::Unretained... Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698