OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG ATE_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG ATE_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_ util.h" | |
12 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | |
13 | |
14 namespace storage { | |
Yusuke Sato
2016/12/13 18:58:56
nit: space between L14/15 if you keep this?
Shuhei Takahashi
2016/12/14 03:24:55
Done.
| |
15 class AsyncFileUtil; | |
Yusuke Sato
2016/12/13 18:58:56
nit: why are these forward declarations necessary?
Shuhei Takahashi
2016/12/14 03:24:55
Thanks, I agree we don't need them.
| |
16 class FileSystemContext; | |
17 class FileStreamReader; | |
18 class FileStreamWriter; | |
19 class FileSystemURL; | |
20 } // namespace storage | |
Yusuke Sato
2016/12/13 18:58:56
same
Shuhei Takahashi
2016/12/14 03:24:55
Done.
| |
21 | |
22 namespace arc { | |
23 | |
24 // Implements ARC documents provider filesystem. | |
25 class ArcDocumentsProviderBackendDelegate | |
26 : public chromeos::FileSystemBackendDelegate { | |
27 public: | |
28 ArcDocumentsProviderBackendDelegate(); | |
29 ~ArcDocumentsProviderBackendDelegate() override; | |
30 | |
31 // FileSystemBackend::Delegate overrides. | |
32 storage::AsyncFileUtil* GetAsyncFileUtil( | |
33 storage::FileSystemType type) override; | |
34 std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader( | |
35 const storage::FileSystemURL& url, | |
36 int64_t offset, | |
37 int64_t max_bytes_to_read, | |
38 const base::Time& expected_modification_time, | |
39 storage::FileSystemContext* context) override; | |
40 std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | |
41 const storage::FileSystemURL& url, | |
42 int64_t offset, | |
43 storage::FileSystemContext* context) override; | |
44 storage::WatcherManager* GetWatcherManager( | |
45 storage::FileSystemType type) override; | |
46 void GetRedirectURLForContents(const storage::FileSystemURL& url, | |
47 const storage::URLCallback& callback) override; | |
48 | |
49 private: | |
50 ArcDocumentsProviderAsyncFileUtil async_file_util_; | |
51 | |
52 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderBackendDelegate); | |
53 }; | |
54 | |
55 } // namespace arc | |
56 | |
57 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DE LEGATE_H_ | |
OLD | NEW |