| 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_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_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 17 matching lines...) Expand all Loading... |
| 28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider | 28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider |
| 29 : public FileSystemMountPointProvider { | 29 : public FileSystemMountPointProvider { |
| 30 public: | 30 public: |
| 31 TestMountPointProvider( | 31 TestMountPointProvider( |
| 32 base::SequencedTaskRunner* task_runner, | 32 base::SequencedTaskRunner* task_runner, |
| 33 const base::FilePath& base_path); | 33 const base::FilePath& base_path); |
| 34 virtual ~TestMountPointProvider(); | 34 virtual ~TestMountPointProvider(); |
| 35 | 35 |
| 36 // FileSystemMountPointProvider implementation. | 36 // FileSystemMountPointProvider implementation. |
| 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; | 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; |
| 38 virtual void ValidateFileSystemRoot( | 38 virtual void OpenFileSystem( |
| 39 const GURL& origin_url, | 39 const GURL& origin_url, |
| 40 FileSystemType type, | 40 FileSystemType type, |
| 41 bool create, | 41 OpenFileSystemMode mode, |
| 42 const ValidateFileSystemCallback& callback) OVERRIDE; | 42 const OpenFileSystemCallback& callback) OVERRIDE; |
| 43 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 43 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
| 44 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; | 44 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; |
| 45 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 45 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
| 46 FileSystemType type, | 46 FileSystemType type, |
| 47 base::PlatformFileError* error_code) OVERRIDE; | 47 base::PlatformFileError* error_code) OVERRIDE; |
| 48 virtual void InitializeCopyOrMoveFileValidatorFactory( | 48 virtual void InitializeCopyOrMoveFileValidatorFactory( |
| 49 FileSystemType type, | 49 FileSystemType type, |
| 50 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE; | 50 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE; |
| 51 virtual FilePermissionPolicy GetPermissionPolicy( | 51 virtual FilePermissionPolicy GetPermissionPolicy( |
| 52 const FileSystemURL& url, | 52 const FileSystemURL& url, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool require_copy_or_move_validator_; | 92 bool require_copy_or_move_validator_; |
| 93 scoped_ptr<CopyOrMoveFileValidatorFactory> | 93 scoped_ptr<CopyOrMoveFileValidatorFactory> |
| 94 copy_or_move_file_validator_factory_; | 94 copy_or_move_file_validator_factory_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(TestMountPointProvider); | 96 DISALLOW_COPY_AND_ASSIGN(TestMountPointProvider); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace fileapi | 99 } // namespace fileapi |
| 100 | 100 |
| 101 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 101 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |