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

Side by Side Diff: webkit/fileapi/file_system_url_request_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/fileapi/file_system_url_request_job.h" 5 #include "webkit/fileapi/file_system_url_request_job.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 return headers; 54 return headers;
55 } 55 }
56 56
57 FileSystemURLRequestJob::FileSystemURLRequestJob( 57 FileSystemURLRequestJob::FileSystemURLRequestJob(
58 URLRequest* request, 58 URLRequest* request,
59 NetworkDelegate* network_delegate, 59 NetworkDelegate* network_delegate,
60 FileSystemContext* file_system_context) 60 FileSystemContext* file_system_context)
61 : URLRequestJob(request, network_delegate), 61 : URLRequestJob(request, network_delegate),
62 file_system_context_(file_system_context), 62 file_system_context_(file_system_context),
63 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), 63 weak_factory_(this),
64 is_directory_(false), 64 is_directory_(false),
65 remaining_bytes_(0) { 65 remaining_bytes_(0) {
66 } 66 }
67 67
68 FileSystemURLRequestJob::~FileSystemURLRequestJob() {} 68 FileSystemURLRequestJob::~FileSystemURLRequestJob() {}
69 69
70 void FileSystemURLRequestJob::Start() { 70 void FileSystemURLRequestJob::Start() {
71 MessageLoop::current()->PostTask( 71 MessageLoop::current()->PostTask(
72 FROM_HERE, 72 FROM_HERE,
73 base::Bind(&FileSystemURLRequestJob::StartAsync, 73 base::Bind(&FileSystemURLRequestJob::StartAsync,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 return false; 242 return false;
243 } 243 }
244 244
245 void FileSystemURLRequestJob::NotifyFailed(int rv) { 245 void FileSystemURLRequestJob::NotifyFailed(int rv) {
246 NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, rv)); 246 NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, rv));
247 } 247 }
248 248
249 } // namespace fileapi 249 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_quota_client_unittest.cc ('k') | webkit/fileapi/file_system_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698