OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
| 8 #include <string> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/file_path.h" | 11 #include "base/file_path.h" |
11 #include "base/file_util_proxy.h" | 12 #include "base/file_util_proxy.h" |
12 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_callback_factory.h" | 15 #include "base/memory/scoped_callback_factory.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop_proxy.h" | 17 #include "base/message_loop_proxy.h" |
17 #include "base/platform_file.h" | 18 #include "base/platform_file.h" |
(...skipping 13 matching lines...) Expand all Loading... |
31 } // namespace net | 32 } // namespace net |
32 | 33 |
33 class GURL; | 34 class GURL; |
34 | 35 |
35 namespace fileapi { | 36 namespace fileapi { |
36 | 37 |
37 class FileSystemCallbackDispatcher; | 38 class FileSystemCallbackDispatcher; |
38 class FileSystemContext; | 39 class FileSystemContext; |
39 class FileWriterDelegate; | 40 class FileWriterDelegate; |
40 class FileSystemOperationTest; | 41 class FileSystemOperationTest; |
41 class FileSystemQuotaUtil; | |
42 | 42 |
43 // This class is designed to serve one-time file system operation per instance. | 43 // This class is designed to serve one-time file system operation per instance. |
44 // Only one method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists, | 44 // Only one method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists, |
45 // GetMetadata, ReadDirectory and Remove) may be called during the lifetime of | 45 // GetMetadata, ReadDirectory and Remove) may be called during the lifetime of |
46 // this object and it should be called no more than once. | 46 // this object and it should be called no more than once. |
47 // This class is self-destructed, or get deleted via base::Owned() fater the | 47 // This class is self-destructed, or get deleted via base::Owned() fater the |
48 // operation finishes and completion callback is called. | 48 // operation finishes and completion callback is called. |
49 class FileSystemOperation { | 49 class FileSystemOperation { |
50 public: | 50 public: |
51 // |dispatcher| will be owned by this class. | 51 // |dispatcher| will be owned by this class. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // write. | 283 // write. |
284 FilePath src_virtual_path_; | 284 FilePath src_virtual_path_; |
285 FilePath dest_virtual_path_; | 285 FilePath dest_virtual_path_; |
286 | 286 |
287 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 287 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
288 }; | 288 }; |
289 | 289 |
290 } // namespace fileapi | 290 } // namespace fileapi |
291 | 291 |
292 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 292 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |