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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 9 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
10 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 10 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 bool SyncFileSystemBackend::HasInplaceCopyImplementation( | 179 bool SyncFileSystemBackend::HasInplaceCopyImplementation( |
180 fileapi::FileSystemType type) const { | 180 fileapi::FileSystemType type) const { |
181 return false; | 181 return false; |
182 } | 182 } |
183 | 183 |
184 scoped_ptr<webkit_blob::FileStreamReader> | 184 scoped_ptr<webkit_blob::FileStreamReader> |
185 SyncFileSystemBackend::CreateFileStreamReader( | 185 SyncFileSystemBackend::CreateFileStreamReader( |
186 const fileapi::FileSystemURL& url, | 186 const fileapi::FileSystemURL& url, |
187 int64 offset, | 187 int64 offset, |
| 188 int64 length, |
188 const base::Time& expected_modification_time, | 189 const base::Time& expected_modification_time, |
189 fileapi::FileSystemContext* context) const { | 190 fileapi::FileSystemContext* context) const { |
190 DCHECK(CanHandleType(url.type())); | 191 DCHECK(CanHandleType(url.type())); |
191 return GetDelegate()->CreateFileStreamReader( | 192 return GetDelegate()->CreateFileStreamReader( |
192 url, offset, expected_modification_time, context); | 193 url, offset, expected_modification_time, context); |
193 } | 194 } |
194 | 195 |
195 scoped_ptr<fileapi::FileStreamWriter> | 196 scoped_ptr<fileapi::FileStreamWriter> |
196 SyncFileSystemBackend::CreateFileStreamWriter( | 197 SyncFileSystemBackend::CreateFileStreamWriter( |
197 const fileapi::FileSystemURL& url, | 198 const fileapi::FileSystemURL& url, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 SyncStatusCodeToFileError(status)); | 296 SyncStatusCodeToFileError(status)); |
296 return; | 297 return; |
297 } | 298 } |
298 | 299 |
299 callback.Run(GetSyncableFileSystemRootURI(origin_url), | 300 callback.Run(GetSyncableFileSystemRootURI(origin_url), |
300 GetFileSystemName(origin_url, type), | 301 GetFileSystemName(origin_url, type), |
301 base::File::FILE_OK); | 302 base::File::FILE_OK); |
302 } | 303 } |
303 | 304 |
304 } // namespace sync_file_system | 305 } // namespace sync_file_system |
OLD | NEW |