Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / drive / fileapi / file_system_backend_delegate.h
blobdaea7eef2bdf165452cf9b674594ad225b048019
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
12 namespace storage {
13 class AsyncFileUtil;
14 class FileSystemContext;
15 class FileStreamReader;
16 class FileSystemURL;
17 class FileStreamWriter;
18 class WatcherManager;
19 } // namespace storage
21 namespace drive {
23 // Delegate implementation of the some methods in chromeos::FileSystemBackend
24 // for Drive file system.
25 class FileSystemBackendDelegate : public chromeos::FileSystemBackendDelegate {
26 public:
27 FileSystemBackendDelegate();
28 ~FileSystemBackendDelegate() override;
30 // FileSystemBackend::Delegate overrides.
31 storage::AsyncFileUtil* GetAsyncFileUtil(
32 storage::FileSystemType type) override;
33 scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
34 const storage::FileSystemURL& url,
35 int64 offset,
36 int64 max_bytes_to_read,
37 const base::Time& expected_modification_time,
38 storage::FileSystemContext* context) override;
39 scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
40 const storage::FileSystemURL& url,
41 int64 offset,
42 storage::FileSystemContext* context) override;
43 storage::WatcherManager* GetWatcherManager(
44 storage::FileSystemType type) override;
45 void GetRedirectURLForContents(const storage::FileSystemURL& url,
46 const storage::URLCallback& callback) override;
48 private:
49 scoped_ptr<storage::AsyncFileUtil> async_file_util_;
51 DISALLOW_COPY_AND_ASSIGN(FileSystemBackendDelegate);
54 } // namespace drive
56 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_