OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const storage::FileSystemURL& url, | 50 const storage::FileSystemURL& url, |
51 storage::FileSystemContext* context, | 51 storage::FileSystemContext* context, |
52 base::File::Error* error_code) const OVERRIDE; | 52 base::File::Error* error_code) const OVERRIDE; |
53 virtual bool SupportsStreaming( | 53 virtual bool SupportsStreaming( |
54 const storage::FileSystemURL& url) const OVERRIDE; | 54 const storage::FileSystemURL& url) const OVERRIDE; |
55 virtual bool HasInplaceCopyImplementation( | 55 virtual bool HasInplaceCopyImplementation( |
56 storage::FileSystemType type) const OVERRIDE; | 56 storage::FileSystemType type) const OVERRIDE; |
57 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 57 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
58 const storage::FileSystemURL& url, | 58 const storage::FileSystemURL& url, |
59 int64 offset, | 59 int64 offset, |
| 60 int64 max_bytes_to_read, |
60 const base::Time& expected_modification_time, | 61 const base::Time& expected_modification_time, |
61 storage::FileSystemContext* context) const OVERRIDE; | 62 storage::FileSystemContext* context) const OVERRIDE; |
62 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 63 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
63 const storage::FileSystemURL& url, | 64 const storage::FileSystemURL& url, |
64 int64 offset, | 65 int64 offset, |
65 storage::FileSystemContext* context) const OVERRIDE; | 66 storage::FileSystemContext* context) const OVERRIDE; |
66 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 67 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
67 | 68 |
68 // Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than | 69 // Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than |
69 // once. | 70 // once. |
(...skipping 23 matching lines...) Expand all Loading... |
93 bool require_copy_or_move_validator_; | 94 bool require_copy_or_move_validator_; |
94 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> | 95 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> |
95 copy_or_move_file_validator_factory_; | 96 copy_or_move_file_validator_factory_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); | 98 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace content | 101 } // namespace content |
101 | 102 |
102 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 103 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |