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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 10828252: Support FileSystem URL in File object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment fix Created 8 years, 4 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 | « webkit/glue/resource_request_body.cc ('k') | webkit/plugins/ppapi/ppb_url_request_info_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index edc154247de5e23a90469e5ab46ffe1dc1ac8772..cb4793c924030620a9ee4e9b084f3c84b8a198c8 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -469,6 +469,16 @@ void WebURLLoaderImpl::Context::Start(
base::Time::FromDoubleT(element.modificationTime));
}
break;
+ case WebHTTPBody::Element::TypeURL: {
+ GURL url = GURL(element.url);
+ DCHECK(url.SchemeIsFileSystem());
+ request_body->AppendFileSystemFileRange(
+ url,
+ static_cast<uint64>(element.fileStart),
+ static_cast<uint64>(element.fileLength),
+ base::Time::FromDoubleT(element.modificationTime));
+ break;
+ }
case WebHTTPBody::Element::TypeBlob:
request_body->AppendBlob(GURL(element.blobURL));
break;
« no previous file with comments | « webkit/glue/resource_request_body.cc ('k') | webkit/plugins/ppapi/ppb_url_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698