| 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_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 12 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
| 10 #include "chrome/browser/chromeos/fileapi/mtp_watcher_manager.h" | 13 #include "chrome/browser/chromeos/fileapi/mtp_watcher_manager.h" |
| 11 | 14 |
| 12 namespace base { | 15 namespace base { |
| 13 class FilePath; | 16 class FilePath; |
| 14 } // namespace base | 17 } // namespace base |
| 15 | 18 |
| 16 namespace storage { | 19 namespace storage { |
| 17 class AsyncFileUtil; | 20 class AsyncFileUtil; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 public: | 35 public: |
| 33 explicit MTPFileSystemBackendDelegate( | 36 explicit MTPFileSystemBackendDelegate( |
| 34 const base::FilePath& storage_partition_path); | 37 const base::FilePath& storage_partition_path); |
| 35 ~MTPFileSystemBackendDelegate() override; | 38 ~MTPFileSystemBackendDelegate() override; |
| 36 | 39 |
| 37 // FileSystemBackendDelegate overrides. | 40 // FileSystemBackendDelegate overrides. |
| 38 storage::AsyncFileUtil* GetAsyncFileUtil( | 41 storage::AsyncFileUtil* GetAsyncFileUtil( |
| 39 storage::FileSystemType type) override; | 42 storage::FileSystemType type) override; |
| 40 scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 43 scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 41 const storage::FileSystemURL& url, | 44 const storage::FileSystemURL& url, |
| 42 int64 offset, | 45 int64_t offset, |
| 43 int64 max_bytes_to_read, | 46 int64_t max_bytes_to_read, |
| 44 const base::Time& expected_modification_time, | 47 const base::Time& expected_modification_time, |
| 45 storage::FileSystemContext* context) override; | 48 storage::FileSystemContext* context) override; |
| 46 scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 49 scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 47 const storage::FileSystemURL& url, | 50 const storage::FileSystemURL& url, |
| 48 int64 offset, | 51 int64_t offset, |
| 49 storage::FileSystemContext* context) override; | 52 storage::FileSystemContext* context) override; |
| 50 storage::WatcherManager* GetWatcherManager( | 53 storage::WatcherManager* GetWatcherManager( |
| 51 storage::FileSystemType type) override; | 54 storage::FileSystemType type) override; |
| 52 void GetRedirectURLForContents(const storage::FileSystemURL& url, | 55 void GetRedirectURLForContents(const storage::FileSystemURL& url, |
| 53 const storage::URLCallback& callback) override; | 56 const storage::URLCallback& callback) override; |
| 54 | 57 |
| 55 private: | 58 private: |
| 56 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; | 59 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; |
| 57 scoped_ptr<MTPWatcherManager> mtp_watcher_manager_; | 60 scoped_ptr<MTPWatcherManager> mtp_watcher_manager_; |
| 58 | 61 |
| 59 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate); |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 } // namespace chromeos | 65 } // namespace chromeos |
| 63 | 66 |
| 64 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| OLD | NEW |