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

Side by Side Diff: webkit/browser/blob/view_blob_internals_job.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, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « webkit/browser/blob/blob_url_request_job_factory.cc ('k') | webkit/child/weburlloader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « webkit/browser/blob/blob_url_request_job_factory.cc ('k') | webkit/child/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698