| 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_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ | 5 #ifndef WEBKIT_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ |
| 6 #define WEBKIT_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ | 6 #define WEBKIT_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "webkit/fileapi/file_system_operation.h" | 9 #include "webkit/fileapi/file_system_operation.h" |
| 10 #include "webkit/fileapi/file_system_types.h" | 10 #include "webkit/fileapi/file_system_types.h" |
| 11 #include "webkit/quota/quota_status_code.h" | 11 #include "webkit/quota/quota_status_code.h" |
| 12 #include "webkit/storage/webkit_storage_export.h" |
| 12 | 13 |
| 13 namespace quota { | 14 namespace quota { |
| 14 class QuotaManager; | 15 class QuotaManager; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace fileapi { | 18 namespace fileapi { |
| 18 | 19 |
| 19 class FileSystemContext; | 20 class FileSystemContext; |
| 20 class FileSystemURL; | 21 class FileSystemURL; |
| 21 | 22 |
| 22 // A helper class to perform async file operations in a synchronous way. | 23 // A helper class to perform async file operations in a synchronous way. |
| 23 class AsyncFileTestHelper { | 24 class WEBKIT_STORAGE_EXPORT_PRIVATE AsyncFileTestHelper { |
| 24 public: | 25 public: |
| 25 typedef FileSystemOperation::FileEntryList FileEntryList; | 26 typedef FileSystemOperation::FileEntryList FileEntryList; |
| 26 | 27 |
| 27 static const int64 kDontCheckSize; | 28 static const int64 kDontCheckSize; |
| 28 | 29 |
| 29 // Performs Copy from |src| to |dest| and returns the status code. | 30 // Performs Copy from |src| to |dest| and returns the status code. |
| 30 static base::PlatformFileError Copy(FileSystemContext* context, | 31 static base::PlatformFileError Copy(FileSystemContext* context, |
| 31 const FileSystemURL& src, | 32 const FileSystemURL& src, |
| 32 const FileSystemURL& dest); | 33 const FileSystemURL& dest); |
| 33 | 34 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 quota::QuotaManager* quota_manager, | 82 quota::QuotaManager* quota_manager, |
| 82 const GURL& origin, | 83 const GURL& origin, |
| 83 FileSystemType type, | 84 FileSystemType type, |
| 84 int64* usage, | 85 int64* usage, |
| 85 int64* quota); | 86 int64* quota); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace fileapi | 89 } // namespace fileapi |
| 89 | 90 |
| 90 #endif // WEBKIT_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ | 91 #endif // WEBKIT_FILEAPI_ASYNC_FILE_TEST_HELPER_H_ |
| OLD | NEW |