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

Unified Diff: content/browser/loader/upload_data_stream_builder.cc

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remediate + windows build 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: content/browser/loader/upload_data_stream_builder.cc
diff --git a/content/browser/loader/upload_data_stream_builder.cc b/content/browser/loader/upload_data_stream_builder.cc
index c497c16c0a769ea50c20469ba1fc44e47708dc31..2f63c231600e871f1e78b5522bfb5ac51f56aaf5 100644
--- a/content/browser/loader/upload_data_stream_builder.cc
+++ b/content/browser/loader/upload_data_stream_builder.cc
@@ -135,6 +135,11 @@ scoped_ptr<net::UploadDataStream> UploadDataStreamBuilder::Build(
// TODO(dmurph): Create blob reader and store the snapshot in there.
NOTREACHED();
break;
+ case ResourceRequestBody::Element::TYPE_DISK_CACHE_ENTRY:
+ // Disk cache entries should not be uploaded, instead only requested
+ // from blink.
mmenke 2015/06/12 18:52:42 Are you sure this comment about them being request
michaeln 2015/06/12 23:43:06 Once something in blink has a Blob backed by a dis
gavinp 2015/06/15 14:01:19 Ahhh, OK. So right now I think this is safe, becau
gavinp 2015/06/15 14:01:19 Blobs are a mess as well; in particular, blobs hav
+ NOTREACHED();
+ break;
case ResourceRequestBody::Element::TYPE_UNKNOWN:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698