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

Side by Side Diff: webkit/blob/view_blob_internals_job.cc

Issue 14307012: webkit: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
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/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
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
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
OLDNEW
« no previous file with comments | « webkit/blob/local_file_stream_reader.cc ('k') | webkit/chromeos/fileapi/remote_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698