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 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 5 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 bool SyncFileSystemBackend::HasInplaceCopyImplementation( | 184 bool SyncFileSystemBackend::HasInplaceCopyImplementation( |
185 storage::FileSystemType type) const { | 185 storage::FileSystemType type) const { |
186 return false; | 186 return false; |
187 } | 187 } |
188 | 188 |
189 scoped_ptr<storage::FileStreamReader> | 189 scoped_ptr<storage::FileStreamReader> |
190 SyncFileSystemBackend::CreateFileStreamReader( | 190 SyncFileSystemBackend::CreateFileStreamReader( |
191 const storage::FileSystemURL& url, | 191 const storage::FileSystemURL& url, |
192 int64 offset, | 192 int64 offset, |
| 193 int64 max_bytes_to_read, |
193 const base::Time& expected_modification_time, | 194 const base::Time& expected_modification_time, |
194 storage::FileSystemContext* context) const { | 195 storage::FileSystemContext* context) const { |
195 DCHECK(CanHandleType(url.type())); | 196 DCHECK(CanHandleType(url.type())); |
196 return GetDelegate()->CreateFileStreamReader( | 197 return GetDelegate()->CreateFileStreamReader( |
197 url, offset, expected_modification_time, context); | 198 url, offset, expected_modification_time, context); |
198 } | 199 } |
199 | 200 |
200 scoped_ptr<storage::FileStreamWriter> | 201 scoped_ptr<storage::FileStreamWriter> |
201 SyncFileSystemBackend::CreateFileStreamWriter( | 202 SyncFileSystemBackend::CreateFileStreamWriter( |
202 const storage::FileSystemURL& url, | 203 const storage::FileSystemURL& url, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 SyncStatusCodeToFileError(status)); | 299 SyncStatusCodeToFileError(status)); |
299 return; | 300 return; |
300 } | 301 } |
301 | 302 |
302 callback.Run(GetSyncableFileSystemRootURI(origin_url), | 303 callback.Run(GetSyncableFileSystemRootURI(origin_url), |
303 GetFileSystemName(origin_url, type), | 304 GetFileSystemName(origin_url, type), |
304 base::File::FILE_OK); | 305 base::File::FILE_OK); |
305 } | 306 } |
306 | 307 |
307 } // namespace sync_file_system | 308 } // namespace sync_file_system |
OLD | NEW |