| 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_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const GURL& origin_url, | 31 const GURL& origin_url, |
| 32 fileapi::FileSystemType type, | 32 fileapi::FileSystemType type, |
| 33 fileapi::OpenFileSystemMode mode, | 33 fileapi::OpenFileSystemMode mode, |
| 34 const OpenFileSystemCallback& callback) OVERRIDE; | 34 const OpenFileSystemCallback& callback) OVERRIDE; |
| 35 | 35 |
| 36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
| 37 fileapi::FileSystemType type) OVERRIDE; | 37 fileapi::FileSystemType type) OVERRIDE; |
| 38 virtual fileapi::CopyOrMoveFileValidatorFactory* | 38 virtual fileapi::CopyOrMoveFileValidatorFactory* |
| 39 GetCopyOrMoveFileValidatorFactory( | 39 GetCopyOrMoveFileValidatorFactory( |
| 40 fileapi::FileSystemType type, | 40 fileapi::FileSystemType type, |
| 41 base::PlatformFileError* error_code) OVERRIDE; | 41 base::File::Error* error_code) OVERRIDE; |
| 42 | 42 |
| 43 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( | 43 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( |
| 44 const fileapi::FileSystemURL& url, | 44 const fileapi::FileSystemURL& url, |
| 45 fileapi::FileSystemContext* context, | 45 fileapi::FileSystemContext* context, |
| 46 base::PlatformFileError* error_code) const OVERRIDE; | 46 base::File::Error* error_code) const OVERRIDE; |
| 47 | 47 |
| 48 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 48 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
| 49 const fileapi::FileSystemURL& url, | 49 const fileapi::FileSystemURL& url, |
| 50 int64 offset, | 50 int64 offset, |
| 51 const base::Time& expected_modification_time, | 51 const base::Time& expected_modification_time, |
| 52 fileapi::FileSystemContext* context) const OVERRIDE; | 52 fileapi::FileSystemContext* context) const OVERRIDE; |
| 53 | 53 |
| 54 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( | 54 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( |
| 55 const fileapi::FileSystemURL& url, | 55 const fileapi::FileSystemURL& url, |
| 56 int64 offset, | 56 int64 offset, |
| 57 fileapi::FileSystemContext* context) const OVERRIDE; | 57 fileapi::FileSystemContext* context) const OVERRIDE; |
| 58 | 58 |
| 59 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 59 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 // User mount points. | 62 // User mount points. |
| 63 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; | 63 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; |
| 64 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; | 64 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace local_discovery | 67 } // namespace local_discovery |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 69 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
| OLD | NEW |