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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 101 net::URLRequest* request, |
102 net::NetworkDelegate* network_delegate, | 102 net::NetworkDelegate* network_delegate, |
103 BlobStorageController* blob_storage_controller) | 103 BlobStorageController* blob_storage_controller) |
104 : net::URLRequestSimpleJob(request, network_delegate), | 104 : net::URLRequestSimpleJob(request, network_delegate), |
105 blob_storage_controller_(blob_storage_controller), | 105 blob_storage_controller_(blob_storage_controller), |
106 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 106 weak_factory_(this) { |
107 } | 107 } |
108 | 108 |
109 ViewBlobInternalsJob::~ViewBlobInternalsJob() { | 109 ViewBlobInternalsJob::~ViewBlobInternalsJob() { |
110 } | 110 } |
111 | 111 |
112 void ViewBlobInternalsJob::Start() { | 112 void ViewBlobInternalsJob::Start() { |
113 MessageLoop::current()->PostTask( | 113 MessageLoop::current()->PostTask( |
114 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync, | 114 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync, |
115 weak_factory_.GetWeakPtr())); | 115 weak_factory_.GetWeakPtr())); |
116 } | 116 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 238 } |
239 | 239 |
240 if (has_multi_items) | 240 if (has_multi_items) |
241 EndHTMLList(out); | 241 EndHTMLList(out); |
242 } | 242 } |
243 | 243 |
244 EndHTMLList(out); | 244 EndHTMLList(out); |
245 } | 245 } |
246 | 246 |
247 } // namespace webkit_blob | 247 } // namespace webkit_blob |
OLD | NEW |