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

Unified Diff: content/common/fileapi/webblobregistry_impl.cc

Issue 10827414: Factor out common Element struct from BlobData and ResourceRequestBody (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: webkit/common -> webkit/base 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/common/fileapi/webblob_messages.h ('k') | content/content_common.gypi » ('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 9a80fb99764613d839425756681c770f8195b7c7..ba13a56a4ad3e12e8d7ce7d77d07ad959060bb24 100644
--- a/content/common/fileapi/webblobregistry_impl.cc
+++ b/content/common/fileapi/webblobregistry_impl.cc
@@ -42,7 +42,7 @@ void WebBlobRegistryImpl::registerBlobURL(
if (data_item.data.size() == 0)
break;
if (data_item.data.size() < kLargeThresholdBytes) {
- item.SetToData(data_item.data.data(), data_item.data.size());
+ item.SetToBytes(data_item.data.data(), data_item.data.size());
child_thread_->Send(new BlobHostMsg_AppendBlobDataItem(url, item));
} else {
// We handle larger amounts of data via SharedMemory instead of
@@ -67,7 +67,7 @@ void WebBlobRegistryImpl::registerBlobURL(
}
case WebBlobData::Item::TypeFile:
if (data_item.length) {
- item.SetToFile(
+ item.SetToFilePathRange(
webkit_glue::WebStringToFilePath(data_item.filePath),
static_cast<uint64>(data_item.offset),
static_cast<uint64>(data_item.length),
@@ -77,7 +77,7 @@ void WebBlobRegistryImpl::registerBlobURL(
break;
case WebBlobData::Item::TypeBlob:
if (data_item.length) {
- item.SetToBlob(
+ item.SetToBlobUrlRange(
data_item.blobURL,
static_cast<uint64>(data_item.offset),
static_cast<uint64>(data_item.length));
« no previous file with comments | « content/common/fileapi/webblob_messages.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698