| 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "webkit/common/fileapi/file_system_types.h" | 10 #include "webkit/common/fileapi/file_system_types.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual ~FileSystemBackendDelegate() {} | 35 virtual ~FileSystemBackendDelegate() {} |
| 36 | 36 |
| 37 // Called from FileSystemBackend::GetAsyncFileUtil(). | 37 // Called from FileSystemBackend::GetAsyncFileUtil(). |
| 38 virtual storage::AsyncFileUtil* GetAsyncFileUtil( | 38 virtual storage::AsyncFileUtil* GetAsyncFileUtil( |
| 39 storage::FileSystemType type) = 0; | 39 storage::FileSystemType type) = 0; |
| 40 | 40 |
| 41 // Called from FileSystemBackend::CreateFileStreamReader(). | 41 // Called from FileSystemBackend::CreateFileStreamReader(). |
| 42 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 42 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 43 const storage::FileSystemURL& url, | 43 const storage::FileSystemURL& url, |
| 44 int64 offset, | 44 int64 offset, |
| 45 int64 max_bytes_to_read, |
| 45 const base::Time& expected_modification_time, | 46 const base::Time& expected_modification_time, |
| 46 storage::FileSystemContext* context) = 0; | 47 storage::FileSystemContext* context) = 0; |
| 47 | 48 |
| 48 // Called from FileSystemBackend::CreateFileStreamWriter(). | 49 // Called from FileSystemBackend::CreateFileStreamWriter(). |
| 49 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 50 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 50 const storage::FileSystemURL& url, | 51 const storage::FileSystemURL& url, |
| 51 int64 offset, | 52 int64 offset, |
| 52 storage::FileSystemContext* context) = 0; | 53 storage::FileSystemContext* context) = 0; |
| 53 | 54 |
| 54 // Called from the FileSystemWatcherService class. The returned pointer must | 55 // Called from the FileSystemWatcherService class. The returned pointer must |
| 55 // stay valid until shutdown. | 56 // stay valid until shutdown. |
| 56 virtual storage::WatcherManager* GetWatcherManager( | 57 virtual storage::WatcherManager* GetWatcherManager( |
| 57 const storage::FileSystemURL& url) = 0; | 58 const storage::FileSystemURL& url) = 0; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace chromeos | 61 } // namespace chromeos |
| 61 | 62 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| OLD | NEW |