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

Unified Diff: content/child/webblobregistry_impl.cc

Issue 29513003: Cleanup deprecated and no longer needed blob revamp stuff, deadcode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/webblobregistry_impl.h ('k') | content/common/fileapi/webblob_messages.h » ('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 fb3ffd19e3e1069250d6dba82047f9fa091ee354..6d272eec136bdc3f87168a11d86a4babe5c8143f 100644
--- a/content/child/webblobregistry_impl.cc
+++ b/content/child/webblobregistry_impl.cc
@@ -69,17 +69,10 @@ void WebBlobRegistryImpl::registerBlobData(
case WebBlobData::Item::TypeBlob:
if (data_item.length) {
webkit_blob::BlobData::Item item;
-#ifdef USE_BLOB_UUIDS
item.SetToBlobRange(
data_item.blobUUID.utf8(),
static_cast<uint64>(data_item.offset),
static_cast<uint64>(data_item.length));
-#else
- item.SetToBlobUrlRange(
- data_item.blobURL,
- static_cast<uint64>(data_item.offset),
- static_cast<uint64>(data_item.length));
-#endif
sender_->Send(
new BlobHostMsg_AppendBlobDataItem(uuid_str, item));
}
@@ -155,33 +148,6 @@ void WebBlobRegistryImpl::SendDataForBlob(const std::string& uuid_str,
}
}
-// DEPRECATED, almost. Until blink is updated, we implement these older methods
-// in terms of our newer blob storage system. We create a uuid for each 'data'
-// we see and construct a mapping from the private blob urls we're given to
-// that uuid. The mapping is maintained in the browser process.
-//
-// Chromium is setup to speak in terms of old-style private blob urls or
-// new-style uuid identifiers. Once blink has been migrated support for
-// the old-style will be deleted. Search for the term deprecated.
-
-void WebBlobRegistryImpl::registerBlobURL(
- const WebURL& url, WebBlobData& data) {
- std::string uuid = base::GenerateGUID();
- registerBlobData(WebKit::WebString::fromUTF8(uuid), data);
- sender_->Send(new BlobHostMsg_DeprecatedRegisterBlobURL(url, uuid));
- sender_->Send(new BlobHostMsg_DecrementRefCount(uuid));
-}
-
-void WebBlobRegistryImpl::registerBlobURL(
- const WebURL& url, const WebURL& src_url) {
- sender_->Send(new BlobHostMsg_DeprecatedCloneBlobURL(url, src_url));
-}
-
-void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) {
- sender_->Send(new BlobHostMsg_DeprecatedRevokeBlobURL(url));
-}
-
-
// ------ streams stuff -----
void WebBlobRegistryImpl::registerStreamURL(
« no previous file with comments | « content/child/webblobregistry_impl.h ('k') | content/common/fileapi/webblob_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698