OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "storage/browser/fileapi/recursive_operation_delegate.h" | 5 #include "storage/browser/fileapi/recursive_operation_delegate.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "storage/browser/fileapi/file_system_context.h" | 12 #include "storage/browser/fileapi/file_system_context.h" |
13 #include "storage/browser/fileapi/file_system_operation_runner.h" | 13 #include "storage/browser/fileapi/file_system_operation_runner.h" |
14 | 14 |
15 namespace storage { | 15 namespace storage { |
16 | 16 |
17 RecursiveOperationDelegate::RecursiveOperationDelegate( | 17 RecursiveOperationDelegate::RecursiveOperationDelegate( |
18 FileSystemContext* file_system_context) | 18 FileSystemContext* file_system_context) |
19 : file_system_context_(file_system_context), | 19 : file_system_context_(file_system_context), |
20 canceled_(false), | 20 canceled_(false), |
21 error_behavior_(FileSystemOperation::ERROR_BEHAVIOR_ABORT), | 21 error_behavior_(FileSystemOperation::ERROR_BEHAVIOR_ABORT), |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 } else { | 227 } else { |
228 if (error_behavior_ == FileSystemOperation::ERROR_BEHAVIOR_SKIP && | 228 if (error_behavior_ == FileSystemOperation::ERROR_BEHAVIOR_SKIP && |
229 failed_some_operations_) | 229 failed_some_operations_) |
230 callback_.Run(base::File::FILE_ERROR_FAILED); | 230 callback_.Run(base::File::FILE_ERROR_FAILED); |
231 else | 231 else |
232 callback_.Run(error); | 232 callback_.Run(error); |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 } // namespace storage | 236 } // namespace storage |
OLD | NEW |