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

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

Issue 895933007: [Storage] Blob items are now shared between blobs. Ready for disk swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and added one more histogram Created 5 years, 10 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 | « storage/browser/blob/view_blob_internals_job.h ('k') | storage/storage_browser.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f5cc41dcd037e882376c13432576935947131d2..ab1f310d09edc0b4b866d73ddcf5599d2366916d 100644
--- a/storage/browser/blob/view_blob_internals_job.cc
+++ b/storage/browser/blob/view_blob_internals_job.cc
@@ -18,8 +18,8 @@
#include "net/base/escape.h"
#include "net/base/net_errors.h"
#include "net/url_request/url_request.h"
-#include "storage/browser/blob/blob_data_snapshot.h"
#include "storage/browser/blob/blob_storage_context.h"
+#include "storage/browser/blob/internal_blob_data.h"
namespace {
@@ -150,8 +150,7 @@ void ViewBlobInternalsJob::GenerateHTML(std::string* out) const {
iter != blob_storage_context_->blob_map_.end();
++iter) {
AddHTMLBoldText(iter->first, out);
- GenerateHTMLForBlobData(*(iter->second->data.get()), iter->second->refcount,
- out);
+ GenerateHTMLForBlobData(*iter->second->data, iter->second->refcount, out);
}
if (!blob_storage_context_->public_blob_urls_.empty()) {
AddHorizontalRule(out);
@@ -168,7 +167,7 @@ void ViewBlobInternalsJob::GenerateHTML(std::string* out) const {
}
void ViewBlobInternalsJob::GenerateHTMLForBlobData(
- const BlobDataSnapshot& blob_data,
+ const InternalBlobData& blob_data,
int refcount,
std::string* out) {
StartHTMLList(out);
@@ -190,7 +189,7 @@ void ViewBlobInternalsJob::GenerateHTMLForBlobData(
AddHTMLListItem(kIndex, base::UTF16ToUTF8(base::FormatNumber(i)), out);
StartHTMLList(out);
}
- const BlobDataItem& item = *(blob_data.items().at(i));
+ const BlobDataItem& item = *(blob_data.items().at(i)->item());
switch (item.type()) {
case DataElement::TYPE_BYTES:
« no previous file with comments | « storage/browser/blob/view_blob_internals_job.h ('k') | storage/storage_browser.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698