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 "webkit/fileapi/recursive_operation_delegate.h" | 5 #include "webkit/browser/fileapi/recursive_operation_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "webkit/fileapi/file_system_context.h" | 8 #include "webkit/fileapi/file_system_context.h" |
9 #include "webkit/fileapi/file_system_operation_context.h" | 9 #include "webkit/fileapi/file_system_operation_context.h" |
10 #include "webkit/fileapi/local_file_system_operation.h" | 10 #include "webkit/fileapi/local_file_system_operation.h" |
11 | 11 |
12 namespace fileapi { | 12 namespace fileapi { |
13 | 13 |
14 namespace { | 14 namespace { |
15 // Don't start too many inflight operations. | 15 // Don't start too many inflight operations. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 base::PlatformFileError error) { | 135 base::PlatformFileError error) { |
136 if (error == base::PLATFORM_FILE_ERROR_NOT_A_FILE) { | 136 if (error == base::PLATFORM_FILE_ERROR_NOT_A_FILE) { |
137 // It wasn't a file either; returns with the previous error. | 137 // It wasn't a file either; returns with the previous error. |
138 callback_.Run(previous_error); | 138 callback_.Run(previous_error); |
139 return; | 139 return; |
140 } | 140 } |
141 DidProcessFile(error); | 141 DidProcessFile(error); |
142 } | 142 } |
143 | 143 |
144 } // namespace fileapi | 144 } // namespace fileapi |
OLD | NEW |