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

Unified Diff: net/base/upload_element_reader.h

Issue 1376123002: Revert of [Blob] BlobReader class & tests, and removal of all redundant reading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « net/base/upload_disk_cache_entry_element_reader_unittest.cc ('k') | net/base/upload_element_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..267df8c89d3a9013100d56b9d0c56a318959b7f1 100644
--- a/net/base/upload_element_reader.h
+++ b/net/base/upload_element_reader.h
@@ -13,6 +13,7 @@
class IOBuffer;
class UploadBytesElementReader;
+class UploadDiskCacheEntryElementReader;
class UploadFileElementReader;
// An interface to read an upload data element.
@@ -20,6 +21,11 @@
public:
UploadElementReader() {}
virtual ~UploadElementReader() {}
+
+ // Returns this instance's pointer as UploadDiskCacheEntryElementReader when
+ // possible, otherwise returns nullptr.
+ virtual const UploadDiskCacheEntryElementReader*
+ AsDiskCacheEntryReaderForTests() const;
// Returns this instance's pointer as UploadBytesElementReader when possible,
// otherwise returns NULL.
« no previous file with comments | « net/base/upload_disk_cache_entry_element_reader_unittest.cc ('k') | net/base/upload_element_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698