| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual ~TestFileSystemBackend(); | 34 virtual ~TestFileSystemBackend(); |
| 35 | 35 |
| 36 // FileSystemBackend implementation. | 36 // FileSystemBackend implementation. |
| 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 38 virtual void InitializeFileSystem( | 38 virtual void InitializeFileSystem( |
| 39 const GURL& origin_url, | 39 const GURL& origin_url, |
| 40 FileSystemType type, | 40 FileSystemType type, |
| 41 OpenFileSystemMode mode, | 41 OpenFileSystemMode mode, |
| 42 FileSystemContext* context, | 42 FileSystemContext* context, |
| 43 const InitializeFileSystemCallback& callback) OVERRIDE; | 43 const InitializeFileSystemCallback& callback) OVERRIDE; |
| 44 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 44 virtual FileSystemFileUtil* GetFileUtil( |
| 45 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 45 FileSystemType type, |
| 46 const FileSystemContext* context) OVERRIDE; |
| 47 virtual AsyncFileUtil* GetAsyncFileUtil( |
| 48 FileSystemType type, |
| 49 const FileSystemContext* context) OVERRIDE; |
| 46 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 50 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
| 47 FileSystemType type, | 51 FileSystemType type, |
| 48 base::PlatformFileError* error_code) OVERRIDE; | 52 base::PlatformFileError* error_code) OVERRIDE; |
| 49 virtual FileSystemOperation* CreateFileSystemOperation( | 53 virtual FileSystemOperation* CreateFileSystemOperation( |
| 50 const FileSystemURL& url, | 54 const FileSystemURL& url, |
| 51 FileSystemContext* context, | 55 FileSystemContext* context, |
| 52 base::PlatformFileError* error_code) const OVERRIDE; | 56 base::PlatformFileError* error_code) const OVERRIDE; |
| 53 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 57 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
| 54 const FileSystemURL& url, | 58 const FileSystemURL& url, |
| 55 int64 offset, | 59 int64 offset, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool require_copy_or_move_validator_; | 91 bool require_copy_or_move_validator_; |
| 88 scoped_ptr<CopyOrMoveFileValidatorFactory> | 92 scoped_ptr<CopyOrMoveFileValidatorFactory> |
| 89 copy_or_move_file_validator_factory_; | 93 copy_or_move_file_validator_factory_; |
| 90 | 94 |
| 91 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); | 95 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 } // namespace fileapi | 98 } // namespace fileapi |
| 95 | 99 |
| 96 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ | 100 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |