| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ |
| 6 #define CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ | 6 #define CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "storage/browser/fileapi/file_system_operation.h" | 11 #include "storage/browser/fileapi/file_system_operation.h" |
| 12 #include "storage/common/fileapi/file_system_types.h" | 12 #include "storage/common/fileapi/file_system_types.h" |
| 13 #include "storage/common/quota/quota_status_code.h" | 13 #include "storage/common/quota/quota_status_code.h" |
| 14 | 14 |
| 15 namespace storage { | 15 class GURL; |
| 16 class QuotaManager; | |
| 17 } | |
| 18 | 16 |
| 19 namespace storage { | 17 namespace storage { |
| 20 class FileSystemContext; | 18 class FileSystemContext; |
| 21 class FileSystemURL; | 19 class FileSystemURL; |
| 20 class QuotaManager; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace content { | 23 namespace content { |
| 25 | 24 |
| 26 // A helper class to perform async file operations in a synchronous way. | 25 // A helper class to perform async file operations in a synchronous way. |
| 27 class AsyncFileTestHelper { | 26 class AsyncFileTestHelper { |
| 28 public: | 27 public: |
| 29 typedef storage::FileSystemOperation::FileEntryList FileEntryList; | 28 typedef storage::FileSystemOperation::FileEntryList FileEntryList; |
| 30 typedef storage::FileSystemOperation::CopyProgressCallback | 29 typedef storage::FileSystemOperation::CopyProgressCallback |
| 31 CopyProgressCallback; | 30 CopyProgressCallback; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 storage::QuotaManager* quota_manager, | 104 storage::QuotaManager* quota_manager, |
| 106 const GURL& origin, | 105 const GURL& origin, |
| 107 storage::FileSystemType type, | 106 storage::FileSystemType type, |
| 108 int64_t* usage, | 107 int64_t* usage, |
| 109 int64_t* quota); | 108 int64_t* quota); |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace content | 111 } // namespace content |
| 113 | 112 |
| 114 #endif // CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ | 113 #endif // CONTENT_PUBLIC_TEST_ASYNC_FILE_TEST_HELPER_H_ |
| OLD | NEW |