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 CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const fileapi::FileSystemURL& url, | 101 const fileapi::FileSystemURL& url, |
102 fileapi::FileSystemContext* context, | 102 fileapi::FileSystemContext* context, |
103 base::File::Error* error_code) const OVERRIDE; | 103 base::File::Error* error_code) const OVERRIDE; |
104 virtual bool SupportsStreaming( | 104 virtual bool SupportsStreaming( |
105 const fileapi::FileSystemURL& url) const OVERRIDE; | 105 const fileapi::FileSystemURL& url) const OVERRIDE; |
106 virtual bool HasInplaceCopyImplementation( | 106 virtual bool HasInplaceCopyImplementation( |
107 fileapi::FileSystemType type) const OVERRIDE; | 107 fileapi::FileSystemType type) const OVERRIDE; |
108 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 108 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
109 const fileapi::FileSystemURL& path, | 109 const fileapi::FileSystemURL& path, |
110 int64 offset, | 110 int64 offset, |
| 111 int64 length, |
111 const base::Time& expected_modification_time, | 112 const base::Time& expected_modification_time, |
112 fileapi::FileSystemContext* context) const OVERRIDE; | 113 fileapi::FileSystemContext* context) const OVERRIDE; |
113 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( | 114 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( |
114 const fileapi::FileSystemURL& url, | 115 const fileapi::FileSystemURL& url, |
115 int64 offset, | 116 int64 offset, |
116 fileapi::FileSystemContext* context) const OVERRIDE; | 117 fileapi::FileSystemContext* context) const OVERRIDE; |
117 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 118 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
118 | 119 |
119 // fileapi::ExternalFileSystemBackend overrides. | 120 // fileapi::ExternalFileSystemBackend overrides. |
120 virtual bool IsAccessAllowed(const fileapi::FileSystemURL& url) | 121 virtual bool IsAccessAllowed(const fileapi::FileSystemURL& url) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Globally visible mount points. System MountPonts instance should outlive | 161 // Globally visible mount points. System MountPonts instance should outlive |
161 // all FileSystemBackend instances, so raw pointer is safe. | 162 // all FileSystemBackend instances, so raw pointer is safe. |
162 fileapi::ExternalMountPoints* system_mount_points_; | 163 fileapi::ExternalMountPoints* system_mount_points_; |
163 | 164 |
164 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); | 165 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace chromeos | 168 } // namespace chromeos |
168 | 169 |
169 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 170 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |