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

Unified Diff: content/child/webblobregistry_impl.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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/child/web_database_observer_impl.h ('k') | content/common/database_connections_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webblobregistry_impl.cc
diff --git a/content/child/webblobregistry_impl.cc b/content/child/webblobregistry_impl.cc
index fcc3ebf051ab0ca90fd630eb7bca1b022c528058..5af997125a09ce37c1944e8b73e3e82a4c88d195 100644
--- a/content/child/webblobregistry_impl.cc
+++ b/content/child/webblobregistry_impl.cc
@@ -16,7 +16,7 @@
#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"
+#include "storage/common/blob/blob_data.h"
using blink::WebBlobData;
using blink::WebString;
@@ -56,7 +56,7 @@ void WebBlobRegistryImpl::registerBlobData(
}
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),
@@ -68,7 +68,7 @@ void WebBlobRegistryImpl::registerBlobData(
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),
@@ -81,7 +81,7 @@ void WebBlobRegistryImpl::registerBlobData(
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),
@@ -122,7 +122,7 @@ void WebBlobRegistryImpl::SendDataForBlob(const std::string& uuid_str,
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 {
@@ -168,7 +168,7 @@ void WebBlobRegistryImpl::addDataToStream(const WebURL& url,
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 {
« no previous file with comments | « content/child/web_database_observer_impl.h ('k') | content/common/database_connections_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698