| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 BackendDelegate(); | 29 BackendDelegate(); |
| 30 virtual ~BackendDelegate(); | 30 virtual ~BackendDelegate(); |
| 31 | 31 |
| 32 // FileSystemBackend::Delegate overrides. | 32 // FileSystemBackend::Delegate overrides. |
| 33 virtual storage::AsyncFileUtil* GetAsyncFileUtil( | 33 virtual storage::AsyncFileUtil* GetAsyncFileUtil( |
| 34 storage::FileSystemType type) OVERRIDE; | 34 storage::FileSystemType type) OVERRIDE; |
| 35 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 35 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 36 const storage::FileSystemURL& url, | 36 const storage::FileSystemURL& url, |
| 37 int64 offset, | 37 int64 offset, |
| 38 int64 max_bytes_to_read, |
| 38 const base::Time& expected_modification_time, | 39 const base::Time& expected_modification_time, |
| 39 storage::FileSystemContext* context) OVERRIDE; | 40 storage::FileSystemContext* context) OVERRIDE; |
| 40 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 41 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 41 const storage::FileSystemURL& url, | 42 const storage::FileSystemURL& url, |
| 42 int64 offset, | 43 int64 offset, |
| 43 storage::FileSystemContext* context) OVERRIDE; | 44 storage::FileSystemContext* context) OVERRIDE; |
| 44 virtual storage::WatcherManager* GetWatcherManager( | 45 virtual storage::WatcherManager* GetWatcherManager( |
| 45 const storage::FileSystemURL& url) OVERRIDE; | 46 const storage::FileSystemURL& url) OVERRIDE; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 scoped_ptr<storage::AsyncFileUtil> async_file_util_; | 49 scoped_ptr<storage::AsyncFileUtil> async_file_util_; |
| 49 | 50 |
| 50 DISALLOW_COPY_AND_ASSIGN(BackendDelegate); | 51 DISALLOW_COPY_AND_ASSIGN(BackendDelegate); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace file_system_provider | 54 } // namespace file_system_provider |
| 54 } // namespace chromeos | 55 } // namespace chromeos |
| 55 | 56 |
| 56 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE
_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE
_H_ |
| OLD | NEW |