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 arc { |
| 15 |
| 16 // Implements ARC documents provider filesystem. |
| 17 class ArcDocumentsProviderBackendDelegate |
| 18 : public chromeos::FileSystemBackendDelegate { |
| 19 public: |
| 20 ArcDocumentsProviderBackendDelegate(); |
| 21 ~ArcDocumentsProviderBackendDelegate() override; |
| 22 |
| 23 // FileSystemBackend::Delegate overrides. |
| 24 storage::AsyncFileUtil* GetAsyncFileUtil( |
| 25 storage::FileSystemType type) override; |
| 26 std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 27 const storage::FileSystemURL& url, |
| 28 int64_t offset, |
| 29 int64_t max_bytes_to_read, |
| 30 const base::Time& expected_modification_time, |
| 31 storage::FileSystemContext* context) override; |
| 32 std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 33 const storage::FileSystemURL& url, |
| 34 int64_t offset, |
| 35 storage::FileSystemContext* context) override; |
| 36 storage::WatcherManager* GetWatcherManager( |
| 37 storage::FileSystemType type) override; |
| 38 void GetRedirectURLForContents(const storage::FileSystemURL& url, |
| 39 const storage::URLCallback& callback) override; |
| 40 |
| 41 private: |
| 42 ArcDocumentsProviderAsyncFileUtil async_file_util_; |
| 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderBackendDelegate); |
| 45 }; |
| 46 |
| 47 } // namespace arc |
| 48 |
| 49 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DE
LEGATE_H_ |
OLD | NEW |