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_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_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 "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 10 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
11 | 11 |
12 namespace storage { | 12 namespace storage { |
13 class AsyncFileUtil; | 13 class AsyncFileUtil; |
| 14 class FileSystemContext; |
| 15 class FileStreamReader; |
| 16 class FileSystemURL; |
| 17 class FileStreamWriter; |
| 18 class WatcherManager; |
14 } // namespace storage | 19 } // namespace storage |
15 | 20 |
16 namespace drive { | 21 namespace drive { |
17 | 22 |
18 // Delegate implementation of the some methods in chromeos::FileSystemBackend | 23 // Delegate implementation of the some methods in chromeos::FileSystemBackend |
19 // for Drive file system. | 24 // for Drive file system. |
20 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate { | 25 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate { |
21 public: | 26 public: |
22 FileSystemBackendDelegate(); | 27 FileSystemBackendDelegate(); |
23 virtual ~FileSystemBackendDelegate(); | 28 virtual ~FileSystemBackendDelegate(); |
24 | 29 |
25 // FileSystemBackend::Delegate overrides. | 30 // FileSystemBackend::Delegate overrides. |
26 virtual storage::AsyncFileUtil* GetAsyncFileUtil( | 31 virtual storage::AsyncFileUtil* GetAsyncFileUtil( |
27 storage::FileSystemType type) OVERRIDE; | 32 storage::FileSystemType type) OVERRIDE; |
28 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 33 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
29 const storage::FileSystemURL& url, | 34 const storage::FileSystemURL& url, |
30 int64 offset, | 35 int64 offset, |
31 const base::Time& expected_modification_time, | 36 const base::Time& expected_modification_time, |
32 storage::FileSystemContext* context) OVERRIDE; | 37 storage::FileSystemContext* context) OVERRIDE; |
33 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 38 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
34 const storage::FileSystemURL& url, | 39 const storage::FileSystemURL& url, |
35 int64 offset, | 40 int64 offset, |
36 storage::FileSystemContext* context) OVERRIDE; | 41 storage::FileSystemContext* context) OVERRIDE; |
| 42 virtual storage::WatcherManager* GetWatcherManager( |
| 43 const storage::FileSystemURL& url) OVERRIDE; |
37 | 44 |
38 private: | 45 private: |
39 scoped_ptr<storage::AsyncFileUtil> async_file_util_; | 46 scoped_ptr<storage::AsyncFileUtil> async_file_util_; |
40 | 47 |
41 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate); |
42 }; | 49 }; |
43 | 50 |
44 } // namespace drive | 51 } // namespace drive |
45 | 52 |
46 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
OLD | NEW |