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

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: Created 5 years, 8 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..a117075b8ca552433aa5c9c5a5a29cfc653d4308 100644
--- a/content/browser/loader/upload_data_stream_builder.cc
+++ b/content/browser/loader/upload_data_stream_builder.cc
@@ -133,8 +133,9 @@ scoped_ptr<net::UploadDataStream> UploadDataStreamBuilder::Build(
case ResourceRequestBody::Element::TYPE_BLOB:
// Blob elements should be resolved beforehand.
// 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
michaeln 2015/06/12 22:35:09 Once something in blink has a Blob backed by a dis
gavinp 2015/06/15 14:01:19 Unless I'm missing something, there's no code path
gavinp 2015/06/15 14:25:55 jkarlin and I just talked this over. It's true tha
michaeln 2015/06/15 22:17:23 The browser process is a Blob server of sorts and
michaeln 2015/06/15 22:18:59 errr, i meant to say "passed by reference in many
+ // from blink.
case ResourceRequestBody::Element::TYPE_UNKNOWN:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698