| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 6 #define CONTENT_PUBLIC_TEST_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(storage::FileSystemType type) const OVERRIDE; | 37 virtual bool CanHandleType(storage::FileSystemType type) const OVERRIDE; |
| 38 virtual void Initialize(storage::FileSystemContext* context) OVERRIDE; | 38 virtual void Initialize(storage::FileSystemContext* context) OVERRIDE; |
| 39 virtual void ResolveURL(const storage::FileSystemURL& url, | 39 virtual void ResolveURL(const storage::FileSystemURL& url, |
| 40 storage::OpenFileSystemMode mode, | 40 storage::OpenFileSystemMode mode, |
| 41 const OpenFileSystemCallback& callback) OVERRIDE; | 41 const OpenFileSystemCallback& callback) OVERRIDE; |
| 42 virtual storage::AsyncFileUtil* GetAsyncFileUtil( | 42 virtual storage::AsyncFileUtil* GetAsyncFileUtil( |
| 43 storage::FileSystemType type) OVERRIDE; | 43 storage::FileSystemType type) OVERRIDE; |
| 44 virtual storage::WatcherManager* GetWatcherManager( |
| 45 storage::FileSystemType type) OVERRIDE; |
| 44 virtual storage::CopyOrMoveFileValidatorFactory* | 46 virtual storage::CopyOrMoveFileValidatorFactory* |
| 45 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type, | 47 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type, |
| 46 base::File::Error* error_code) OVERRIDE; | 48 base::File::Error* error_code) OVERRIDE; |
| 47 virtual storage::FileSystemOperation* CreateFileSystemOperation( | 49 virtual storage::FileSystemOperation* CreateFileSystemOperation( |
| 48 const storage::FileSystemURL& url, | 50 const storage::FileSystemURL& url, |
| 49 storage::FileSystemContext* context, | 51 storage::FileSystemContext* context, |
| 50 base::File::Error* error_code) const OVERRIDE; | 52 base::File::Error* error_code) const OVERRIDE; |
| 51 virtual bool SupportsStreaming( | 53 virtual bool SupportsStreaming( |
| 52 const storage::FileSystemURL& url) const OVERRIDE; | 54 const storage::FileSystemURL& url) const OVERRIDE; |
| 53 virtual bool HasInplaceCopyImplementation( | 55 virtual bool HasInplaceCopyImplementation( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 78 void set_require_copy_or_move_validator(bool flag) { | 80 void set_require_copy_or_move_validator(bool flag) { |
| 79 require_copy_or_move_validator_ = flag; | 81 require_copy_or_move_validator_ = flag; |
| 80 } | 82 } |
| 81 | 83 |
| 82 private: | 84 private: |
| 83 class QuotaUtil; | 85 class QuotaUtil; |
| 84 | 86 |
| 85 base::FilePath base_path_; | 87 base::FilePath base_path_; |
| 86 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 88 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 87 scoped_ptr<storage::AsyncFileUtilAdapter> file_util_; | 89 scoped_ptr<storage::AsyncFileUtilAdapter> file_util_; |
| 90 scoped_ptr<storage::WatcherManager> watcher_manager_; |
| 88 scoped_ptr<QuotaUtil> quota_util_; | 91 scoped_ptr<QuotaUtil> quota_util_; |
| 89 | 92 |
| 90 bool require_copy_or_move_validator_; | 93 bool require_copy_or_move_validator_; |
| 91 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> | 94 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> |
| 92 copy_or_move_file_validator_factory_; | 95 copy_or_move_file_validator_factory_; |
| 93 | 96 |
| 94 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); | 97 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace content | 100 } // namespace content |
| 98 | 101 |
| 99 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 102 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |