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