#include "content/child/child_thread.h"
#include "content/child/thread_safe_sender.h"
#include "content/common/fileapi/webblob_messages.h"
+#include "storage/common/blob/blob_data.h"
#include "third_party/WebKit/public/platform/WebBlobData.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebThreadSafeData.h"
#include "third_party/WebKit/public/platform/WebURL.h"
-#include "webkit/common/blob/blob_data.h"
using blink::WebBlobData;
using blink::WebString;
}
case WebBlobData::Item::TypeFile:
if (data_item.length) {
- webkit_blob::BlobData::Item item;
+ storage::BlobData::Item item;
item.SetToFilePathRange(
base::FilePath::FromUTF16Unsafe(data_item.filePath),
static_cast<uint64>(data_item.offset),
break;
case WebBlobData::Item::TypeBlob:
if (data_item.length) {
- webkit_blob::BlobData::Item item;
+ storage::BlobData::Item item;
item.SetToBlobRange(
data_item.blobUUID.utf8(),
static_cast<uint64>(data_item.offset),
if (data_item.length) {
// We only support filesystem URL as of now.
DCHECK(GURL(data_item.fileSystemURL).SchemeIsFileSystem());
- webkit_blob::BlobData::Item item;
+ storage::BlobData::Item item;
item.SetToFileSystemUrlRange(
data_item.fileSystemURL,
static_cast<uint64>(data_item.offset),
if (data.size() == 0)
return;
if (data.size() < kLargeThresholdBytes) {
- webkit_blob::BlobData::Item item;
+ storage::BlobData::Item item;
item.SetToBytes(data.data(), data.size());
sender_->Send(new BlobHostMsg_AppendBlobDataItem(uuid_str, item));
} else {
if (data.size() == 0)
return;
if (data.size() < kLargeThresholdBytes) {
- webkit_blob::BlobData::Item item;
+ storage::BlobData::Item item;
item.SetToBytes(data.data(), data.size());
sender_->Send(new StreamHostMsg_AppendBlobDataItem(url, item));
} else {