| 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/remove_operation_delegate.h" | 5 #include "webkit/fileapi/remove_operation_delegate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 8 #include "webkit/fileapi/file_system_context.h" | 9 #include "webkit/fileapi/file_system_context.h" |
| 9 #include "webkit/fileapi/file_system_operation_context.h" | 10 #include "webkit/fileapi/file_system_operation_context.h" |
| 10 #include "webkit/fileapi/local_file_system_operation.h" | |
| 11 | 11 |
| 12 namespace fileapi { | 12 namespace fileapi { |
| 13 | 13 |
| 14 RemoveOperationDelegate::RemoveOperationDelegate( | 14 RemoveOperationDelegate::RemoveOperationDelegate( |
| 15 FileSystemContext* file_system_context, | 15 FileSystemContext* file_system_context, |
| 16 LocalFileSystemOperation* operation, | 16 LocalFileSystemOperation* operation, |
| 17 const FileSystemURL& url, | 17 const FileSystemURL& url, |
| 18 const StatusCallback& callback) | 18 const StatusCallback& callback) |
| 19 : RecursiveOperationDelegate(file_system_context, operation), | 19 : RecursiveOperationDelegate(file_system_context, operation), |
| 20 url_(url), | 20 url_(url), |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return; | 78 return; |
| 79 } | 79 } |
| 80 FileSystemURL url = to_remove_directories_.top(); | 80 FileSystemURL url = to_remove_directories_.top(); |
| 81 to_remove_directories_.pop(); | 81 to_remove_directories_.pop(); |
| 82 NewNestedOperation()->RemoveDirectory(url, base::Bind( | 82 NewNestedOperation()->RemoveDirectory(url, base::Bind( |
| 83 &RemoveOperationDelegate::RemoveNextDirectory, | 83 &RemoveOperationDelegate::RemoveNextDirectory, |
| 84 AsWeakPtr())); | 84 AsWeakPtr())); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace fileapi | 87 } // namespace fileapi |
| OLD | NEW |