Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_delegate.h

Issue 2411323002: arc: Empty implementation of ARC content file system (Closed)
Patch Set: Address comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_BACKEND_DELE GATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_BACKEND_DELE GATE_H_
7
8 #include <stdint.h>
9 7
10 #include <memory> 8 #include <memory>
11 9
12 #include "base/macros.h" 10 #include "base/macros.h"
13 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" 11 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
14 12
15 namespace storage { 13 namespace arc {
16 class AsyncFileUtil;
17 class FileSystemContext;
18 class FileStreamReader;
19 class FileSystemURL;
20 class FileStreamWriter;
21 class WatcherManager;
22 } // namespace storage
23
24 namespace drive {
25 14
26 // Delegate implementation of the some methods in chromeos::FileSystemBackend 15 // Delegate implementation of the some methods in chromeos::FileSystemBackend
27 // for Drive file system. 16 // for ARC content file system.
28 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate { 17 class ArcContentFileSystemBackendDelegate
18 : public chromeos::FileSystemBackendDelegate {
29 public: 19 public:
30 FileSystemBackendDelegate(); 20 ArcContentFileSystemBackendDelegate();
31 ~FileSystemBackendDelegate() override; 21 ~ArcContentFileSystemBackendDelegate() override;
32 22
33 // FileSystemBackend::Delegate overrides. 23 // FileSystemBackend::Delegate overrides.
34 storage::AsyncFileUtil* GetAsyncFileUtil( 24 storage::AsyncFileUtil* GetAsyncFileUtil(
35 storage::FileSystemType type) override; 25 storage::FileSystemType type) override;
36 std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader( 26 std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader(
37 const storage::FileSystemURL& url, 27 const storage::FileSystemURL& url,
38 int64_t offset, 28 int64_t offset,
39 int64_t max_bytes_to_read, 29 int64_t max_bytes_to_read,
40 const base::Time& expected_modification_time, 30 const base::Time& expected_modification_time,
41 storage::FileSystemContext* context) override; 31 storage::FileSystemContext* context) override;
42 std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 32 std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
43 const storage::FileSystemURL& url, 33 const storage::FileSystemURL& url,
44 int64_t offset, 34 int64_t offset,
45 storage::FileSystemContext* context) override; 35 storage::FileSystemContext* context) override;
46 storage::WatcherManager* GetWatcherManager( 36 storage::WatcherManager* GetWatcherManager(
47 storage::FileSystemType type) override; 37 storage::FileSystemType type) override;
48 void GetRedirectURLForContents(const storage::FileSystemURL& url, 38 void GetRedirectURLForContents(const storage::FileSystemURL& url,
49 const storage::URLCallback& callback) override; 39 const storage::URLCallback& callback) override;
50 40
51 private: 41 private:
52 std::unique_ptr<storage::AsyncFileUtil> async_file_util_; 42 std::unique_ptr<storage::AsyncFileUtil> async_file_util_;
53 43
54 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate); 44 DISALLOW_COPY_AND_ASSIGN(ArcContentFileSystemBackendDelegate);
55 }; 45 };
56 46
57 } // namespace drive 47 } // namespace arc
58 48
59 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_BACKEND_D ELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698