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

Unified Diff: content/common/fileapi/webblobregistry_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 | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/fileapi/webblobregistry_impl.cc
diff --git a/content/common/fileapi/webblobregistry_impl.cc b/content/common/fileapi/webblobregistry_impl.cc
index ba13a56a4ad3e12e8d7ce7d77d07ad959060bb24..d5618022c4af1e43b98dd30eed8a624845b54e0a 100644
--- a/content/common/fileapi/webblobregistry_impl.cc
+++ b/content/common/fileapi/webblobregistry_impl.cc
@@ -84,6 +84,18 @@ void WebBlobRegistryImpl::registerBlobURL(
child_thread_->Send(new BlobHostMsg_AppendBlobDataItem(url, item));
}
break;
+ case WebBlobData::Item::TypeURL:
+ if (data_item.length) {
+ // We only support filesystem URL as of now.
+ DCHECK(GURL(data_item.url).SchemeIsFileSystem());
+ item.SetToFileSystemUrlRange(
+ data_item.url,
+ static_cast<uint64>(data_item.offset),
+ static_cast<uint64>(data_item.length),
+ base::Time::FromDoubleT(data_item.expectedModificationTime));
+ child_thread_->Send(new BlobHostMsg_AppendBlobDataItem(url, item));
+ }
+ break;
default:
NOTREACHED();
}
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698