| 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/blob/view_blob_internals_job.h" | 5 #include "webkit/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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 "</form><br/>\n", | 91 "</form><br/>\n", |
| 92 escaped_command.c_str(), | 92 escaped_command.c_str(), |
| 93 title.c_str()); | 93 title.c_str()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace | 96 } // namespace |
| 97 | 97 |
| 98 namespace webkit_blob { | 98 namespace webkit_blob { |
| 99 | 99 |
| 100 ViewBlobInternalsJob::ViewBlobInternalsJob( | 100 ViewBlobInternalsJob::ViewBlobInternalsJob( |
| 101 net::URLRequest* request, BlobStorageController* blob_storage_controller) | 101 net::URLRequest* request, |
| 102 : net::URLRequestSimpleJob(request), | 102 net::NetworkDelegate* network_delegate, |
| 103 BlobStorageController* blob_storage_controller) |
| 104 : net::URLRequestSimpleJob(request, network_delegate), |
| 103 blob_storage_controller_(blob_storage_controller), | 105 blob_storage_controller_(blob_storage_controller), |
| 104 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 106 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { |
| 105 } | 107 } |
| 106 | 108 |
| 107 ViewBlobInternalsJob::~ViewBlobInternalsJob() { | 109 ViewBlobInternalsJob::~ViewBlobInternalsJob() { |
| 108 } | 110 } |
| 109 | 111 |
| 110 void ViewBlobInternalsJob::Start() { | 112 void ViewBlobInternalsJob::Start() { |
| 111 MessageLoop::current()->PostTask( | 113 MessageLoop::current()->PostTask( |
| 112 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync, | 114 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } | 231 } |
| 230 | 232 |
| 231 if (has_multi_items) | 233 if (has_multi_items) |
| 232 EndHTMLList(out); | 234 EndHTMLList(out); |
| 233 } | 235 } |
| 234 | 236 |
| 235 EndHTMLList(out); | 237 EndHTMLList(out); |
| 236 } | 238 } |
| 237 | 239 |
| 238 } // namespace webkit_blob | 240 } // namespace webkit_blob |
| OLD | NEW |