| 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 #ifndef WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "webkit/common/fileapi/file_system_url.h" |
| 13 #include "webkit/fileapi/file_system_operation.h" | 14 #include "webkit/fileapi/file_system_operation.h" |
| 14 #include "webkit/fileapi/file_system_url.h" | |
| 15 | 15 |
| 16 namespace fileapi { | 16 namespace fileapi { |
| 17 | 17 |
| 18 class FileSystemContext; | 18 class FileSystemContext; |
| 19 | 19 |
| 20 // A base class for recursive operation delegates. | 20 // A base class for recursive operation delegates. |
| 21 // This also provides some convenient default implementations for subclasses | 21 // This also provides some convenient default implementations for subclasses |
| 22 // like StartRecursiveOperation() and NewNestedOperation(). | 22 // like StartRecursiveOperation() and NewNestedOperation(). |
| 23 // | 23 // |
| 24 // In short, each subclass should override ProcessFile and ProcessDirectory | 24 // In short, each subclass should override ProcessFile and ProcessDirectory |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 std::queue<FileSystemURL> pending_directories_; | 94 std::queue<FileSystemURL> pending_directories_; |
| 95 std::queue<FileSystemURL> pending_files_; | 95 std::queue<FileSystemURL> pending_files_; |
| 96 int inflight_operations_; | 96 int inflight_operations_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(RecursiveOperationDelegate); | 98 DISALLOW_COPY_AND_ASSIGN(RecursiveOperationDelegate); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace fileapi | 101 } // namespace fileapi |
| 102 | 102 |
| 103 #endif // WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ | 103 #endif // WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_ |
| OLD | NEW |