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