| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/blob/view_blob_internals_job.h" | 5 #include "webkit/blob/view_blob_internals_job.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/i18n/number_formatting.h" | 9 #include "base/i18n/number_formatting.h" |
| 10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::string* out) { | 81 std::string* out) { |
| 82 out->append("<li>"); | 82 out->append("<li>"); |
| 83 out->append(element_title); | 83 out->append(element_title); |
| 84 out->append(element_data); | 84 out->append(element_data); |
| 85 out->append("</li>"); | 85 out->append("</li>"); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void AddHTMLButton(const std::string& title, | 88 void AddHTMLButton(const std::string& title, |
| 89 const std::string& command, | 89 const std::string& command, |
| 90 std::string* out) { | 90 std::string* out) { |
| 91 StringAppendF(out, | 91 base::StringAppendF(out, |
| 92 "<input type=\"button\" value=\"%s\" " | 92 "<input type=\"button\" value=\"%s\" " |
| 93 "onclick=\"SubmitCommand('%s')\" />", | 93 "onclick=\"SubmitCommand('%s')\" />", |
| 94 title.c_str(), | 94 title.c_str(), |
| 95 command.c_str()); | 95 command.c_str()); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace | 98 } // namespace |
| 99 | 99 |
| 100 namespace webkit_blob { | 100 namespace webkit_blob { |
| 101 | 101 |
| 102 ViewBlobInternalsJob::ViewBlobInternalsJob( | 102 ViewBlobInternalsJob::ViewBlobInternalsJob( |
| 103 URLRequest* request, BlobStorageController* blob_storage_controller) | 103 URLRequest* request, BlobStorageController* blob_storage_controller) |
| 104 : URLRequestSimpleJob(request), | 104 : URLRequestSimpleJob(request), |
| 105 blob_storage_controller_(blob_storage_controller) { | 105 blob_storage_controller_(blob_storage_controller) { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 if (has_multi_items) | 224 if (has_multi_items) |
| 225 EndHTMLList(out); | 225 EndHTMLList(out); |
| 226 } | 226 } |
| 227 | 227 |
| 228 EndHTMLList(out); | 228 EndHTMLList(out); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace webkit_blob | 231 } // namespace webkit_blob |
| OLD | NEW |