| 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_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Delegate implementation of the some methods in chromeos::FileSystemBackend | 25 // Delegate implementation of the some methods in chromeos::FileSystemBackend |
| 26 // for provided file systems. | 26 // for provided file systems. |
| 27 class BackendDelegate : public chromeos::FileSystemBackendDelegate { | 27 class BackendDelegate : public chromeos::FileSystemBackendDelegate { |
| 28 public: | 28 public: |
| 29 BackendDelegate(); | 29 BackendDelegate(); |
| 30 virtual ~BackendDelegate(); | 30 virtual ~BackendDelegate(); |
| 31 | 31 |
| 32 // FileSystemBackend::Delegate overrides. | 32 // FileSystemBackend::Delegate overrides. |
| 33 virtual storage::AsyncFileUtil* GetAsyncFileUtil( | 33 virtual storage::AsyncFileUtil* GetAsyncFileUtil( |
| 34 storage::FileSystemType type) OVERRIDE; | 34 storage::FileSystemType type) override; |
| 35 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 35 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 36 const storage::FileSystemURL& url, | 36 const storage::FileSystemURL& url, |
| 37 int64 offset, | 37 int64 offset, |
| 38 int64 max_bytes_to_read, | 38 int64 max_bytes_to_read, |
| 39 const base::Time& expected_modification_time, | 39 const base::Time& expected_modification_time, |
| 40 storage::FileSystemContext* context) OVERRIDE; | 40 storage::FileSystemContext* context) override; |
| 41 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 41 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
| 42 const storage::FileSystemURL& url, | 42 const storage::FileSystemURL& url, |
| 43 int64 offset, | 43 int64 offset, |
| 44 storage::FileSystemContext* context) OVERRIDE; | 44 storage::FileSystemContext* context) override; |
| 45 virtual storage::WatcherManager* GetWatcherManager( | 45 virtual storage::WatcherManager* GetWatcherManager( |
| 46 const storage::FileSystemURL& url) OVERRIDE; | 46 const storage::FileSystemURL& url) override; |
| 47 virtual void GetRedirectURLForContents( | 47 virtual void GetRedirectURLForContents( |
| 48 const storage::FileSystemURL& url, | 48 const storage::FileSystemURL& url, |
| 49 const storage::URLCallback& callback) OVERRIDE; | 49 const storage::URLCallback& callback) override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 scoped_ptr<storage::AsyncFileUtil> async_file_util_; | 52 scoped_ptr<storage::AsyncFileUtil> async_file_util_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(BackendDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(BackendDelegate); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace file_system_provider | 57 } // namespace file_system_provider |
| 58 } // namespace chromeos | 58 } // namespace chromeos |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE
_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BACKEND_DELEGATE
_H_ |
| OLD | NEW |