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

Side by Side 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: Added back transport controller test, small cleanups Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "storage/browser/blob/view_blob_internals_job.h" 5 #include "storage/browser/blob/view_blob_internals_job.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 GenerateHTML(data); 148 GenerateHTML(data);
149 EndHTML(data); 149 EndHTML(data);
150 return net::OK; 150 return net::OK;
151 } 151 }
152 152
153 void ViewBlobInternalsJob::GenerateHTML(std::string* out) const { 153 void ViewBlobInternalsJob::GenerateHTML(std::string* out) const {
154 for (BlobStorageRegistry::BlobMap::const_iterator iter = 154 for (BlobStorageRegistry::BlobMap::const_iterator iter =
155 blob_storage_context_->registry_.blob_map_.begin(); 155 blob_storage_context_->registry_.blob_map_.begin();
156 iter != blob_storage_context_->registry_.blob_map_.end(); ++iter) { 156 iter != blob_storage_context_->registry_.blob_map_.end(); ++iter) {
157 AddHTMLBoldText(iter->first, out); 157 AddHTMLBoldText(iter->first, out);
158 GenerateHTMLForBlobData(*iter->second->data, iter->second->content_type, 158 GenerateHTMLForBlobData(iter->second->data, iter->second->content_type,
159 iter->second->content_disposition, 159 iter->second->content_disposition,
160 iter->second->refcount, out); 160 iter->second->refcount, out);
161 } 161 }
162 if (!blob_storage_context_->registry_.url_to_uuid_.empty()) { 162 if (!blob_storage_context_->registry_.url_to_uuid_.empty()) {
163 AddHorizontalRule(out); 163 AddHorizontalRule(out);
164 for (BlobStorageRegistry::URLMap::const_iterator iter = 164 for (BlobStorageRegistry::URLMap::const_iterator iter =
165 blob_storage_context_->registry_.url_to_uuid_.begin(); 165 blob_storage_context_->registry_.url_to_uuid_.begin();
166 iter != blob_storage_context_->registry_.url_to_uuid_.end(); ++iter) { 166 iter != blob_storage_context_->registry_.url_to_uuid_.end(); ++iter) {
167 AddHTMLBoldText(iter->first.spec(), out); 167 AddHTMLBoldText(iter->first.spec(), out);
168 StartHTMLList(out); 168 StartHTMLList(out);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 if (has_multi_items) 249 if (has_multi_items)
250 EndHTMLList(out); 250 EndHTMLList(out);
251 } 251 }
252 252
253 EndHTMLList(out); 253 EndHTMLList(out);
254 } 254 }
255 255
256 } // namespace storage 256 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698