OLD | NEW |
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 "webkit/browser/blob/view_blob_internals_job.h" | 5 #include "webkit/browser/blob/view_blob_internals_job.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 for (BlobStorageContext::BlobURLMap::const_iterator iter = | 160 for (BlobStorageContext::BlobURLMap::const_iterator iter = |
161 blob_storage_context_->public_blob_urls_.begin(); | 161 blob_storage_context_->public_blob_urls_.begin(); |
162 iter != blob_storage_context_->public_blob_urls_.end(); | 162 iter != blob_storage_context_->public_blob_urls_.end(); |
163 ++iter) { | 163 ++iter) { |
164 AddHTMLBoldText(iter->first.spec(), out); | 164 AddHTMLBoldText(iter->first.spec(), out); |
165 StartHTMLList(out); | 165 StartHTMLList(out); |
166 AddHTMLListItem(kUUID, iter->second, out); | 166 AddHTMLListItem(kUUID, iter->second, out); |
167 EndHTMLList(out); | 167 EndHTMLList(out); |
168 } | 168 } |
169 } | 169 } |
170 if (!blob_storage_context_->deprecated_blob_urls_.empty()) { | |
171 AddHorizontalRule(out); | |
172 for (BlobStorageContext::BlobURLMap::const_iterator iter = | |
173 blob_storage_context_->deprecated_blob_urls_.begin(); | |
174 iter != blob_storage_context_->deprecated_blob_urls_.end(); | |
175 ++iter) { | |
176 AddHTMLBoldText(iter->first.spec(), out); | |
177 StartHTMLList(out); | |
178 AddHTMLListItem(kUUID, iter->second, out); | |
179 EndHTMLList(out); | |
180 } | |
181 } | |
182 } | 170 } |
183 | 171 |
184 void ViewBlobInternalsJob::GenerateHTMLForBlobData(const BlobData& blob_data, | 172 void ViewBlobInternalsJob::GenerateHTMLForBlobData(const BlobData& blob_data, |
185 int refcount, | 173 int refcount, |
186 std::string* out) { | 174 std::string* out) { |
187 StartHTMLList(out); | 175 StartHTMLList(out); |
188 | 176 |
189 AddHTMLListItem(kRefcount, base::IntToString(refcount), out); | 177 AddHTMLListItem(kRefcount, base::IntToString(refcount), out); |
190 if (!blob_data.content_type().empty()) | 178 if (!blob_data.content_type().empty()) |
191 AddHTMLListItem(kContentType, blob_data.content_type(), out); | 179 AddHTMLListItem(kContentType, blob_data.content_type(), out); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 234 } |
247 | 235 |
248 if (has_multi_items) | 236 if (has_multi_items) |
249 EndHTMLList(out); | 237 EndHTMLList(out); |
250 } | 238 } |
251 | 239 |
252 EndHTMLList(out); | 240 EndHTMLList(out); |
253 } | 241 } |
254 | 242 |
255 } // namespace webkit_blob | 243 } // namespace webkit_blob |
OLD | NEW |