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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 out->append(net::EscapeForHTML(element_data)); | 80 out->append(net::EscapeForHTML(element_data)); |
81 out->append("</li>\n"); | 81 out->append("</li>\n"); |
82 } | 82 } |
83 | 83 |
84 void AddHorizontalRule(std::string* out) { | 84 void AddHorizontalRule(std::string* out) { |
85 out->append("\n<hr>\n"); | 85 out->append("\n<hr>\n"); |
86 } | 86 } |
87 | 87 |
88 } // namespace | 88 } // namespace |
89 | 89 |
90 namespace webkit_blob { | 90 namespace storage { |
91 | 91 |
92 ViewBlobInternalsJob::ViewBlobInternalsJob( | 92 ViewBlobInternalsJob::ViewBlobInternalsJob( |
93 net::URLRequest* request, | 93 net::URLRequest* request, |
94 net::NetworkDelegate* network_delegate, | 94 net::NetworkDelegate* network_delegate, |
95 BlobStorageContext* blob_storage_context) | 95 BlobStorageContext* blob_storage_context) |
96 : net::URLRequestSimpleJob(request, network_delegate), | 96 : net::URLRequestSimpleJob(request, network_delegate), |
97 blob_storage_context_(blob_storage_context), | 97 blob_storage_context_(blob_storage_context), |
98 weak_factory_(this) { | 98 weak_factory_(this) { |
99 } | 99 } |
100 | 100 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 static_cast<int64>(item.length()))), out); | 232 static_cast<int64>(item.length()))), out); |
233 } | 233 } |
234 | 234 |
235 if (has_multi_items) | 235 if (has_multi_items) |
236 EndHTMLList(out); | 236 EndHTMLList(out); |
237 } | 237 } |
238 | 238 |
239 EndHTMLList(out); | 239 EndHTMLList(out); |
240 } | 240 } |
241 | 241 |
242 } // namespace webkit_blob | 242 } // namespace storage |
OLD | NEW |