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

Unified Diff: storage/browser/blob/view_blob_internals_job.cc

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: storage/browser/blob/view_blob_internals_job.cc
diff --git a/storage/browser/blob/view_blob_internals_job.cc b/storage/browser/blob/view_blob_internals_job.cc
index 269a56036fea140fa95a216a11219706f278a140..fe3eae02b88a1cfff29f4ea0f62e8c5b753557ce 100644
--- a/storage/browser/blob/view_blob_internals_job.cc
+++ b/storage/browser/blob/view_blob_internals_job.cc
@@ -28,6 +28,7 @@
#include "storage/browser/blob/blob_storage_context.h"
#include "storage/browser/blob/blob_storage_registry.h"
#include "storage/browser/blob/internal_blob_data.h"
+#include "storage/browser/blob/shareable_blob_data_item.h"
namespace {
@@ -143,7 +144,7 @@ int ViewBlobInternalsJob::GetData(
data->clear();
StartHTML(data);
- if (blob_storage_context_->registry_.blob_map_.empty())
+ if (blob_storage_context_->registry().blob_map_.empty())
data->append(kEmptyBlobStorageMessage);
else
GenerateHTML(data);
@@ -153,18 +154,18 @@ int ViewBlobInternalsJob::GetData(
void ViewBlobInternalsJob::GenerateHTML(std::string* out) const {
for (BlobStorageRegistry::BlobMap::const_iterator iter =
- blob_storage_context_->registry_.blob_map_.begin();
- iter != blob_storage_context_->registry_.blob_map_.end(); ++iter) {
+ blob_storage_context_->registry().blob_map_.begin();
+ iter != blob_storage_context_->registry().blob_map_.end(); ++iter) {
AddHTMLBoldText(iter->first, out);
- GenerateHTMLForBlobData(*iter->second->data, iter->second->content_type,
- iter->second->content_disposition,
- iter->second->refcount, out);
+ GenerateHTMLForBlobData(*iter->second, iter->second->content_type(),
+ iter->second->content_disposition(),
+ iter->second->refcount(), out);
}
- if (!blob_storage_context_->registry_.url_to_uuid_.empty()) {
+ if (!blob_storage_context_->registry().url_to_uuid_.empty()) {
AddHorizontalRule(out);
for (BlobStorageRegistry::URLMap::const_iterator iter =
- blob_storage_context_->registry_.url_to_uuid_.begin();
- iter != blob_storage_context_->registry_.url_to_uuid_.end(); ++iter) {
+ blob_storage_context_->registry().url_to_uuid_.begin();
+ iter != blob_storage_context_->registry().url_to_uuid_.end(); ++iter) {
AddHTMLBoldText(iter->first.spec(), out);
StartHTMLList(out);
AddHTMLListItem(kUUID, iter->second, out);
@@ -232,6 +233,7 @@ void ViewBlobInternalsJob::GenerateHTMLForBlobData(
AddHTMLListItem(kURL, item.disk_cache_entry()->GetKey(), out);
break;
case DataElement::TYPE_BYTES_DESCRIPTION:
+ AddHTMLListItem(kType, "pending data", out);
case DataElement::TYPE_UNKNOWN:
NOTREACHED();
break;
« no previous file with comments | « storage/browser/blob/shareable_blob_data_item.cc ('k') | storage/common/blob_storage/blob_storage_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698