| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |