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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const storage::FileSystemURL& url, | 48 const storage::FileSystemURL& url, |
49 storage::FileSystemContext* context, | 49 storage::FileSystemContext* context, |
50 base::File::Error* error_code) const OVERRIDE; | 50 base::File::Error* error_code) const OVERRIDE; |
51 virtual bool SupportsStreaming( | 51 virtual bool SupportsStreaming( |
52 const storage::FileSystemURL& url) const OVERRIDE; | 52 const storage::FileSystemURL& url) const OVERRIDE; |
53 virtual bool HasInplaceCopyImplementation( | 53 virtual bool HasInplaceCopyImplementation( |
54 storage::FileSystemType type) const OVERRIDE; | 54 storage::FileSystemType type) const OVERRIDE; |
55 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 55 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
56 const storage::FileSystemURL& url, | 56 const storage::FileSystemURL& url, |
57 int64 offset, | 57 int64 offset, |
| 58 int64 length, |
58 const base::Time& expected_modification_time, | 59 const base::Time& expected_modification_time, |
59 storage::FileSystemContext* context) const OVERRIDE; | 60 storage::FileSystemContext* context) const OVERRIDE; |
60 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 61 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
61 const storage::FileSystemURL& url, | 62 const storage::FileSystemURL& url, |
62 int64 offset, | 63 int64 offset, |
63 storage::FileSystemContext* context) const OVERRIDE; | 64 storage::FileSystemContext* context) const OVERRIDE; |
64 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 65 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
65 | 66 |
66 // Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than | 67 // Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than |
67 // once. | 68 // once. |
(...skipping 22 matching lines...) Expand all Loading... |
90 bool require_copy_or_move_validator_; | 91 bool require_copy_or_move_validator_; |
91 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> | 92 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> |
92 copy_or_move_file_validator_factory_; | 93 copy_or_move_file_validator_factory_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); | 95 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace content | 98 } // namespace content |
98 | 99 |
99 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 100 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |